★ APPLICATIONS ★ PROGRAMMATION ★ REGISTER LOADER (POPULAR COMPUTING WEEKLY) ★![]() |
| Register Loader (Popular Computing Weekly) | Applications Programmation |
This machine code program will allow you to load Z80 registers from Basic, thereby enabling the user to call firmware routines that are otherwise not available. The new RSX's are as follows. |LDA,n load n into A register. |LDB,n load n into B register. |LDC,n load n into C register. |LDD,n load n into D register. |LDE,n load n into E register. |LDH,n load n into H register. |LDL,n load n into L register. |LDBC,n load 16-bit n into BC. |LDDE,n load 16-bit n into DE. |LDHL,n load 16-bit n into HL. |FWCALL,n calls the firmware routine at address n. This should be done after loading the relevant registers using the RSX's above. |REGS prints the contents of all the registers, including the states of all the flags (use this command in direct mode). |FLAGS prints just the state of the flags.
|