Routines |
Prev: 65A1 | Up: Map | Next: 663D |
Called from the main loop at 6229.
|
||||
6622 | LD HL,$6DA6 | Point HL at the first of the guard countdown timers. | ||
6625 | LD B,$04 | There are four guards. | ||
6627 | PUSH BC | Save the guard counter. | ||
6628 | LD A,(HL) | Set the zero flag if this guard is in play. | ||
6629 | INC HL | |||
662A | OR (HL) | |||
662B | INC HL | Point HL at the next guard's countdown timer. | ||
662C | PUSH HL | Save the guard countdown timer pointer. | ||
662D | JR NZ,$6638 | Jump if this guard is not in play yet. | ||
662F | CALL $6A3F | Copy the guard's buffer into the temporary location (6DB8). | ||
6632 | CALL $663D | Draw the guard. | ||
6635 | CALL $6A6A | Copy the guard's buffer back to the original location. | ||
6638 | POP HL | Restore the guard countdown timer pointer to HL. | ||
6639 | POP BC | Restore the guard counter to B. | ||
663A | DJNZ $6627 | Jump back to deal with the next guard. | ||
663C | RET |
Prev: 65A1 | Up: Map | Next: 663D |