Prev: BDD3 Up: Map Next: BDEA
BDDA: Get User Input
Wait for a new keypress.
Output
A The keypress value
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.
Prev: BDD3 Up: Map Next: BDEA