Prev: 9DD7 Up: Map Next: 9E0B
9DFB: Get User Input
Used by the routines at SaveGame, Handler_Images, Handler_UserInput, ABBD and GameOver.
Output
A The keypress value
GetUserInput 9DFB LD A,($5C3B) A=*FLAGS.
9DFE BIT 5,A Jump back to GetUserInput until a new key is pressed.
9E00 JR Z,GetUserInput
9E02 RES 5,A Reset the "new key has been pressed" flag in A.
9E04 LD ($5C3B),A Write it back to *FLAGS.
Fetch the keypress.
9E07 LD A,($5C08) A=*LAST_K.
9E0A RET Return.
View the equivalent code in;
Prev: 9DD7 Up: Map Next: 9E0B