![]() |
Routines |
| Prev: 43988 | Up: Map | Next: 44017 |
|
Used by the routines at SaveGame, HandlerUserInput, HandlerAskToPlayAgain, Action_Load, Action_Quit and HandlerTheEdgeOfTheSea.
Wait until the player presses a key, then return that key.
|
||||||||
| GetUserInput | 44001 | LD A,(23611) | A=*FLAGS. | |||||
| 44004 | BIT 5,A | Jump back to GetUserInput until a new key is pressed. | ||||||
| 44006 | JR Z,GetUserInput | |||||||
| 44008 | RES 5,A | Reset the "new key has been pressed" flag in A. | ||||||
| 44010 | LD (23611),A | Write it back to *FLAGS. | ||||||
|
Fetch the keypress.
|
||||||||
| 44013 | LD A,(23560) | A=*LAST_K. | ||||||
| 44016 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 43988 | Up: Map | Next: 44017 |