Prev: 27170 Up: Map Next: 27242
27199: Copy a guard buffer into the temporary location
Used by the routines at 24576, 25399, 25886, 26146, 26276, 26426 and 26887.
Input
B Guard number (1-4)
27199 LD A,B Copy the guard number (1, 2, 3, 4) to A.
27200 CP 4 Are we dealing with guard 4?
27202 JR NZ,27209 Jump if not.
27204 LD HL,28131 Point HL at the buffer for guard 4.
27207 JR 27230
27209 CP 3 Are we dealing with guard 3?
27211 JR NZ,27218 Jump if not.
27213 LD HL,28174 Point HL at the buffer for guard 3.
27216 JR 27230
27218 CP 2 Are we dealing with guard 2?
27220 JR NZ,27227 Jump if not.
27222 LD HL,28217 Point HL at the buffer for guard 2.
27225 JR 27230
27227 LD HL,28260 Point HL at the buffer for guard 1.
27230 LD (28086),HL Save the address of the guard's buffer for later retrieval.
27233 LD DE,28088 Copy the guard's buffer into the temporary location (28088).
27236 LD BC,43
27239 LDIR
27241 RET
Prev: 27170 Up: Map Next: 27242