![]() |
Routines |
| Prev: BDD3 | Up: Map | Next: BDEA |
|
Wait for a new keypress.
|
||||||||
| GetUserInput | BDDA | LD A,($5C3B) | Read *FLAGS and jump back to GetUserInput until a new key is pressed. | |||||
| BDDD | BIT 5,A | |||||||
| BDDF | JR Z,GetUserInput | |||||||
| BDE1 | RES 5,A | Reset the "new key has been pressed" flag. | ||||||
| BDE3 | LD ($5C3B),A | Write it back to *FLAGS. | ||||||
|
Fetch the keypress.
|
||||||||
| BDE6 | LD A,($5C08) | Copy the key from *LAST_K. | ||||||
| BDE9 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: BDD3 | Up: Map | Next: BDEA |