Prev: A531 Up: Map Next: A54E
A53E: Get User Input
Output
A The keypress value
GetUserInput A53E LD A,($5C3B) A=*FLAGS.
A541 BIT 5,A Jump back to GetUserInput until a new key is pressed.
A543 JR Z,GetUserInput
A545 RES 5,A Reset the "new key has been pressed" flag in A.
A547 LD ($5C3B),A Write it back to *FLAGS.
Fetch the keypress.
A54A LD A,($5C08) A=*LAST_K.
A54D RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: A531 Up: Map Next: A54E