Routines
| Prev: D495 | Up: Map | Next: D4CC |
D4A7: List the people here: 'YOU CAN SEE ...'
|
||||||||
| D4A7 | PUSH IY | Save IY on the stack - Save the registers | ||||||
| D4A9 | PUSH AF | Save AF on the stack | ||||||
| D4AA | PUSH BC | Save BC on the stack | ||||||
| D4AB | LD A,$FF | Load A with $FF - Count the people here: place $FF (D4CC) | ||||||
| D4AD | CALL $D4CC | Call the routine "Count the things in place B that should be listed (B)" (D4CC) | ||||||
| D4B0 | JR Z,$D4C7 | If the zero flag is set, skip ahead to D4C7 - None: finish | ||||||
| D4B2 | PUSH AF | Save AF on the stack | ||||||
| D4B3 | LD HL,$68E4 | Point HL at the message "YOU CAN SEE" (68E4) | ||||||
| D4B6 | CALL $A59F | Call the routine "Print the message at HL" (A59F) | ||||||
| D4B9 | POP BC | Restore BC from the stack | ||||||
| D4BA | LD C,B | Copy B into C | ||||||
| D4BB | LD A,$FF | Load A with $FF | ||||||
| D4BD | LD IY,($A017) | Read $A017 in "Game variables" into IY | ||||||
| D4C1 | LD B,(IY+$0F) | Read byte +15 of the record at IY into B | ||||||
| D4C4 | CALL $D51A | Call the routine "List the things in a place, with commas and AND" (D51A) | ||||||
| D4C7 | POP BC | Restore BC from the stack | ||||||
| D4C8 | POP AF | Restore AF from the stack | ||||||
| D4C9 | POP IY | Restore IY from the stack | ||||||
| D4CB | RET | Return to the caller | ||||||
| Prev: D495 | Up: Map | Next: D4CC |