![]()  | 
Routines | 
| Prev: 42289 | Up: Map | Next: 42318 | 
| 
 
Used by the routines at SaveGame, Handler_UserInput, GameOver, Action_Load, Action_Quit and DisplayImage_WoodedVale.
 
  | 
||||||||
| GetUserInput | 42302 | LD A,(23611) | A=*FLAGS. | |||||
| 42305 | BIT 5,A | Jump back to GetUserInput until a new key is pressed. | ||||||
| 42307 | JR Z,GetUserInput | |||||||
| 42309 | RES 5,A | Reset the "new key has been pressed" flag in A. | ||||||
| 42311 | LD (23611),A | Write it back to *FLAGS. | ||||||
| 
 
Fetch the keypress.
 
 | 
||||||||
| 42314 | LD A,(23560) | A=*LAST_K. | ||||||
| 42317 | RET | Return. | ||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||
| Prev: 42289 | Up: Map | Next: 42318 |