Prev: BA50 Up: Map Next: BA6D
BA5D: Get User Input
Output
A The keypress value
GetUserInput BA5D LD A,($5C3B) A=*FLAGS.
BA60 BIT 5,A Jump back to GetUserInput until a new key is pressed.
BA62 JR Z,GetUserInput
BA64 RES 5,A Reset the "new key has been pressed" flag in A.
BA66 LD ($5C3B),A Write it back to *FLAGS.
Fetch the keypress.
BA69 LD A,($5C08) A=*LAST_K.
BA6C RET Return.
View the equivalent code in Warlord.
Prev: BA50 Up: Map Next: BA6D