Routines |
Prev: 51098 | Up: Map | Next: 51152 |
Used by the routine at 51043.
|
||||
While the game is paused, check if the player is pressing 'O' to resume the game
|
||||
51141 | LD BC,57342 | Keyboard port address for keys Y, U, I, O, P | ||
51144 | IN A,(C) | Check this half-row of the keyboard | ||
51146 | OR %11111101 | For the 'O key we're interested in the second lowest bit (bit 1), so set all the other bits to 1 | ||
51148 | CP %11111111 | If bit 1 is set to 1, all the bits will be set to 1, indicating the 'O key isn't being pressed. | ||
51150 | JR Z,51043 | If this is the case, return to the start of the pause routine, play the music and keep checking the keyboard. Otherwise, continue to the next routine to resume the game, starting at the main game loop. |
Prev: 51098 | Up: Map | Next: 51152 |