Prev: 9481 Up: Map Next: 94B6
9489: Pause while SPACE is pressed on its own
Used by the routine at MAIN_LOOP_MONSTERS.
Once a pass, with interrupts off: if SPACE is down and none of B, N, M or SYMBOL SHIFT is, wait for SPACE to be released, then pressed again, then released. FRAMES does not move meanwhile, so the clock stops too (measured in the simulator). Interrupts come back on at the top of the next pass.
PAUSE 9489 DI
948A LD A,$7E
948C OUT ($FD),A
948E IN A,($FE)
9490 BIT 0,A
9492 RET NZ
9493 CPL
9494 AND $1E
9496 RET NZ
PAUSE_0 9497 LD A,$7E
9499 OUT ($FD),A
949B IN A,($FE)
949D BIT 0,A
949F JR Z,PAUSE_0
PAUSE_1 94A1 LD A,$7E
94A3 OUT ($FD),A
94A5 IN A,($FE)
94A7 BIT 0,A
94A9 JR NZ,PAUSE_1
PAUSE_2 94AB LD A,$7E
94AD OUT ($FD),A
94AF IN A,($FE)
94B1 BIT 0,A
94B3 JR Z,PAUSE_2
94B5 RET
Prev: 9481 Up: Map Next: 94B6