This BASIC program will print the machine language code for the ZX81 BASIC program in hex. This can then be inserted into an an assembly program and compiled.
The included program is used in prtscrl2 assembly code.