Prev: C6B6 Up: Map Next: C763
C758: Pause game routine - check if 'pause' key pressed
Used by the routine at C6B6.
Follows the previous routine keyboard control checks for up/down/left/right/fire.
C758 LD BC,$DFFE Keyboard port for Y, U, I, O, P keys
C75B IN A,(C) Get input from keyboard
C75D OR %11111110 'P' key to check is the lowest bit (bit 0), so set all the other bits (1-7) to 1
C75F CP %11111111 If all bits set (including bit 0), it means that 'P' ISN'T being pressed
C761 JR Z,$C7D0 If that's the case, jump to C7D0
Otherwise, continue to the pause game routine
Prev: C6B6 Up: Map Next: C763