![]() |
Routines |
| Prev: 25742 | Up: Map | Next: 25765 |
|
Used by the routines at Handler_UserInput, Handler_DisplayRoom, SaveGame, HandlerAskToPlayAgain and ActionQuit.
Wait until a new key is pressed, then return that key.
|
||||||||
|
Wait until a new key is pressed.
|
||||||||
| GetUserInput | 25749 | LD A,(23611) | Read the key-state flags from FLAGS. | |||||
| 25752 | BIT 5,A | Jump back to GetUserInput until a new key is pressed. | ||||||
| 25754 | JR Z,GetUserInput | |||||||
| 25756 | RES 5,A | Reset the new-key flag. | ||||||
| 25758 | LD (23611),A | Write the flags back to FLAGS. | ||||||
|
Fetch the keypress.
|
||||||||
| 25761 | LD A,(23560) | Read the key from LAST_K. | ||||||
| 25764 | RET | Return. | ||||||
| Prev: 25742 | Up: Map | Next: 25765 |