Prev: 48595 Up: Map Next: 48618
48602: Get User Input
Wait for a new keypress.
Output
A The keypress value
GetUserInput 48602 LD A,(23611) Read *FLAGS and jump back to GetUserInput until a new key is pressed.
48605 BIT 5,A
48607 JR Z,GetUserInput
48609 RES 5,A Reset the "new key has been pressed" flag.
48611 LD (23611),A Write it back to *FLAGS.
Fetch the keypress.
48614 LD A,(23560) Copy the key from *LAST_K.
48617 RET Return.
Prev: 48595 Up: Map Next: 48618