Prev: 25742 Up: Map Next: 25765
25749: Get User Input
Wait until a new key is pressed, then return that key.
Output
A The keypress value
Wait until a new key is pressed.
GetUserInput 25749 LD A,(23611) Read the key-state flags from FLAGS.
25752 BIT 5,A Jump back to GetUserInput until a new key is pressed.
25754 JR Z,GetUserInput
25756 RES 5,A Reset the new-key flag.
25758 LD (23611),A Write the flags back to FLAGS.
Fetch the keypress.
25761 LD A,(23560) Read the key from LAST_K.
25764 RET Return.
Prev: 25742 Up: Map Next: 25765