Prev: 72ef Up: Map Next: 7309
7302: Joystick Input (Interface 2)
The ROM cartridge was made for the Interface 2 which reads the Joystick I bits in the format of 000LRDUF, which are mapped to the keyboard keys: 6, 7, 8, 9, and 0. Note that a reset bit means the button is pressed.
Used by the routines at 7309, 733f, 735e and 743e.
Output
A Joystick direction/button state.
7302 ld a,$ef Interface 2 Joystick port
7304 out ($fb),a
7306 in a,($fe) A = bits for 000LRDUF
7308 ret
Prev: 72ef Up: Map Next: 7309