![]() |
Routines |
| Prev: 71BD | Up: Map | Next: 722C |
|
Used by the routine at Initialise_Next_Phase.
|
||||||||
| Wait_Slot_Frames | 7215 | LD B,A | Copy the frame count to B. | |||||
|
Move the slots and wait one frame.
|
||||||||
| Wait_Slot_Frames_Loop | 7216 | PUSH BC | Stash the frame counter on the stack. | |||||
| 7217 | CALL Move_Slot_Table | Call Move_Slot_Table. | ||||||
| 721A | LD A,$01 | Write 01 to *Frame_Flag. | ||||||
| 721C | LD ($EED5),A | |||||||
| 721F | LD A,($E1F6) | Jump to Wait_Slot_Frames_Halt if *E1F6 is not zero. | ||||||
| 7222 | AND A | |||||||
| 7223 | JR NZ,Wait_Slot_Frames_Halt | |||||||
| 7225 | HALT | Halt twice. | ||||||
| 7226 | HALT | |||||||
| Wait_Slot_Frames_Halt | 7227 | HALT | Halt. | |||||
| 7228 | POP BC | Restore the frame counter from the stack. | ||||||
| 7229 | DJNZ Wait_Slot_Frames_Loop | Decrease the frame counter by one and loop back to Wait_Slot_Frames_Loop until it is zero. | ||||||
| 722B | RET | Return. | ||||||
| Prev: 71BD | Up: Map | Next: 722C |