Prev: EAED Up: Map Next: EAF8
EAF2: Get the keypress offset of the last key pressed (2)
Continues from the routine at EAB2. Returns with A holding the entry from the keypress offset table corresponding to the key just pressed, and the zero flag set if it wasn't a game key.
Input
A ASCII code of the last keypress (0x30-0x7F)
EAF2 LD L,A Transfer the ASCII code to L
This entry point is used by the routine at EAB2 with L holding the ASCII code corresponding to the last joystick movement.
EAF3 LD H,$C3 Point HL at the entry in the keypress offset table corresponding to the last keypress or joystick movement
EAF5 LD A,(HL) Pick up the entry in A
EAF6 AND A Set the zero flag if it wasn't a game key
EAF7 RET
Prev: EAED Up: Map Next: EAF8