Routines |
Prev: 686A | Up: Map | Next: 6922 |
Called from the main loop at 6229.
|
||||
6907 | LD HL,$6DA6 | Point HL at the first guard countdown timer. | ||
690A | LD B,$04 | There are four guards to consider. | ||
690C | PUSH BC | Save the guard counter. | ||
690D | LD A,(HL) | Set the zero flag if this guard is in play. | ||
690E | INC HL | |||
690F | OR (HL) | |||
6910 | INC HL | Point HL at the next guard's countdown timer. | ||
6911 | PUSH HL | Save the guard countdown timer pointer. | ||
6912 | JR NZ,$691D | Jump if this guard is not in play yet. | ||
6914 | CALL $6A3F | Copy the guard's buffer into the temporary location (6DB8). | ||
6917 | CALL $6922 | Make the guard drop his lunch if necessary. | ||
691A | CALL $6A6A | Copy the guard's buffer back to the original location. | ||
691D | POP HL | Restore the guard countdown timer pointer to HL. | ||
691E | POP BC | Restore the guard counter to B. | ||
691F | DJNZ $690C | Jump back to handle the next guard. | ||
6921 | RET |
Prev: 686A | Up: Map | Next: 6922 |