Prev: 46821 Up: Map Next: 46884
46851: Handler: Controls Interface 2 Joystick
Input
E Control response
Handler_Controls_Interface2 46851 LD BC,61438 Read from the keyboard;
Port Number Bit
0 1 2 3 4
239 0 9 8 7 6
46854 IN A,(C)
Handles "left" action.
46856 LD E,16 E=16.
46858 BIT 4,A Return if "6" (left) was pressed.
46860 RET Z
Handles "right" action.
46861 LD E,0 E=0.
46863 BIT 3,A Return if "7" (right) was pressed.
46865 RET Z
Handles "down" action.
46866 LD E,8 E=8.
46868 BIT 2,A Return if "8" (down) was pressed.
46870 RET Z
Handles "up" action.
46871 LD E,24 E=24.
46873 BIT 1,A Return if "9" (up) was pressed.
46875 RET Z
Handles "fire" action.
46876 LD E,128 E=128.
46878 BIT 0,A Return if "0" (fire) was pressed.
46880 RET Z
Handle no action.
46881 LD E,192 E=192.
46883 RET Return.
Prev: 46821 Up: Map Next: 46884