Prev: B6E5 Up: Map Next: B724
B703: Handler: Controls Interface 2 Joystick
Input
E Control response
Handler_Controls_Interface2 B703 LD BC,$EFFE Read from the keyboard;
Port Number Bit
0 1 2 3 4
EF 0 9 8 7 6
B706 IN A,(C)
Handles "left" action.
B708 LD E,$10 E=10.
B70A BIT 4,A Return if "6" (left) was pressed.
B70C RET Z
Handles "right" action.
B70D LD E,$00 E=00.
B70F BIT 3,A Return if "7" (right) was pressed.
B711 RET Z
Handles "down" action.
B712 LD E,$08 E=08.
B714 BIT 2,A Return if "8" (down) was pressed.
B716 RET Z
Handles "up" action.
B717 LD E,$18 E=18.
B719 BIT 1,A Return if "9" (up) was pressed.
B71B RET Z
Handles "fire" action.
B71C LD E,$80 E=80.
B71E BIT 0,A Return if "0" (fire) was pressed.
B720 RET Z
Handle no action.
B721 LD E,$C0 E=C0.
B723 RET Return.
Prev: B6E5 Up: Map Next: B724