Routines
| Prev: B77F | Up: Map | Next: B84C |
B83C: Push the three words at HL as message parameters
|
Takes its own return address off the stack, pushes the three word references from HL, and returns under them, so that the message printed next (A59F) finds them as its parameters.
|
||||||||||||
| B83C | POP IX | Pop the return address into IX | ||||||||||
| B83E | LD B,$03 | Load B with $03 - Push the three words at HL as message parameters (3 x 2 bytes) | ||||||||||
| B840 | LD E,(HL) | Read the byte HL points at into E | ||||||||||
| B841 | INC HL | Step HL on to the next byte | ||||||||||
| B842 | LD D,(HL) | Read the byte HL points at into D | ||||||||||
| B843 | INC HL | Step HL on to the next byte | ||||||||||
| B844 | PUSH DE | Save DE on the stack | ||||||||||
| B845 | DJNZ $B840 | Count B down and, while it is not zero, go back to B840 | ||||||||||
| B847 | POP HL | Restore HL from the stack - Re-order the stack so the first word is on top... | ||||||||||
| B848 | EX (SP),HL | Swap HL with the word on top of the stack | ||||||||||
| B849 | PUSH HL | Save HL on the stack | ||||||||||
| B84A | JP (IX) | ...and return to the caller through IX | ||||||||||
| Prev: B77F | Up: Map | Next: B84C |