Routines |
Prev: A264 | Up: Map | Next: A27F |
This sets the routes for guards 12 to 15 to leave huts 2 and 3.
|
||||
event_search_light | A26A | LD A,$26 | Set route to (routeindex_38_GUARD_12_BED, 0) | |
A26C | LD C,$00 | |||
This entry point is used by the routine at event_time_for_bed.
Common end of event_time_for_bed and event_search_light. Sets the route for guards 12..15 to (C + 0, A)..(C + 3, A) respectively.
TODO: Split off to its own routine
|
||||
set_guards_route | A26E | EX AF,AF' | bank | |
A26F | LD A,$0C | Set character index to character_12_GUARD_12 | ||
A271 | LD B,$04 | 4 iterations | ||
Start loop
|
||||
event_search_light_0 | A273 | PUSH AF | ||
A274 | CALL set_character_route | Set the route for a character in A to route (A', C) | ||
A277 | POP AF | |||
A278 | INC A | Increment the character index | ||
A279 | EX AF,AF' | |||
A27A | INC A | Increment the route index | ||
A27B | EX AF,AF' | |||
A27C | DJNZ event_search_light_0 | ...loop | ||
A27E | RET | Return |
Prev: A264 | Up: Map | Next: A27F |