Routines |
Prev: 26730 | Up: Map | Next: 26914 |
Called from the main loop at 25129.
|
||||
26887 | LD HL,28070 | Point HL at the first guard countdown timer. | ||
26890 | LD B,4 | There are four guards to consider. | ||
26892 | PUSH BC | Save the guard counter. | ||
26893 | LD A,(HL) | Set the zero flag if this guard is in play. | ||
26894 | INC HL | |||
26895 | OR (HL) | |||
26896 | INC HL | Point HL at the next guard's countdown timer. | ||
26897 | PUSH HL | Save the guard countdown timer pointer. | ||
26898 | JR NZ,26909 | Jump if this guard is not in play yet. | ||
26900 | CALL 27199 | Copy the guard's buffer into the temporary location (28088). | ||
26903 | CALL 26914 | Make the guard drop his lunch if necessary. | ||
26906 | CALL 27242 | Copy the guard's buffer back to the original location. | ||
26909 | POP HL | Restore the guard countdown timer pointer to HL. | ||
26910 | POP BC | Restore the guard counter to B. | ||
26911 | DJNZ 26892 | Jump back to handle the next guard. | ||
26913 | RET |
Prev: 26730 | Up: Map | Next: 26914 |