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