Prev: 43988 Up: Map Next: 44017
44001: Get User Input
Wait until the player presses a key, then return that key.
Output
A The keypress value
GetUserInput 44001 LD A,(23611) A=*FLAGS.
44004 BIT 5,A Jump back to GetUserInput until a new key is pressed.
44006 JR Z,GetUserInput
44008 RES 5,A Reset the "new key has been pressed" flag in A.
44010 LD (23611),A Write it back to *FLAGS.
Fetch the keypress.
44013 LD A,(23560) A=*LAST_K.
44016 RET Return.
Prev: 43988 Up: Map Next: 44017