Prev: 29117 Up: Map Next: 29228
29205: Wait Slot Frames
Used by the routine at Initialise_Next_Phase.
Calls Move_Slot_Table for A frames, waiting extra frames when *57846 is zero.
Input
A Frame count
Wait_Slot_Frames 29205 LD B,A Copy the frame count to B.
Move the slots and wait one frame.
Wait_Slot_Frames_Loop 29206 PUSH BC Stash the frame counter on the stack.
29207 CALL Move_Slot_Table Call Move_Slot_Table.
29210 LD A,1 Write 1 to *Frame_Flag.
29212 LD (61141),A
29215 LD A,(57846) Jump to Wait_Slot_Frames_Halt if *57846 is not zero.
29218 AND A
29219 JR NZ,Wait_Slot_Frames_Halt
29221 HALT Halt twice.
29222 HALT
Wait_Slot_Frames_Halt 29223 HALT Halt.
29224 POP BC Restore the frame counter from the stack.
29225 DJNZ Wait_Slot_Frames_Loop Decrease the frame counter by one and loop back to Wait_Slot_Frames_Loop until it is zero.
29227 RET Return.
Prev: 29117 Up: Map Next: 29228