Prev: 60141 Up: Map Next: 60152
60146: Get the keypress offset of the last key pressed (2)
Continues from the routine at 60082. 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 (48-127)
60146 LD L,A Transfer the ASCII code to L
This entry point is used by the routine at 60082 with L holding the ASCII code corresponding to the last joystick movement.
60147 LD H,195 Point HL at the entry in the keypress offset table corresponding to the last keypress or joystick movement
60149 LD A,(HL) Pick up the entry in A
60150 AND A Set the zero flag if it wasn't a game key
60151 RET
Prev: 60141 Up: Map Next: 60152