![]()  | 
Routines | 
| Prev: 40407 | Up: Map | Next: 40459 | 
  | 
||||||||
| GetUserInput | 40443 | LD A,(23611) | A=*FLAGS. | |||||
| 40446 | BIT 5,A | Jump back to GetUserInput until a new key is pressed. | ||||||
| 40448 | JR Z,GetUserInput | |||||||
| 40450 | RES 5,A | Reset the "new key has been pressed" flag in A. | ||||||
| 40452 | LD (23611),A | Write it back to *FLAGS. | ||||||
| 
 
Fetch the keypress.
 
 | 
||||||||
| 40455 | LD A,(23560) | A=*LAST_K. | ||||||
| 40458 | RET | Return. | ||||||
| 
 
View the equivalent code in; 
 
 | 
||||||||
| Prev: 40407 | Up: Map | Next: 40459 |