Prev: 47696 Up: Map Next: 47725
47709: Get User Input
Output
A The keypress value
GetUserInput 47709 LD A,(23611) A=*FLAGS.
47712 BIT 5,A Jump back to GetUserInput until a new key is pressed.
47714 JR Z,GetUserInput
47716 RES 5,A Reset the "new key has been pressed" flag in A.
47718 LD (23611),A Write it back to *FLAGS.
Fetch the keypress.
47721 LD A,(23560) A=*LAST_K.
47724 RET Return.
View the equivalent code in Warlord.
Prev: 47696 Up: Map Next: 47725