Prev: 46783 Up: Map Next: 46851
46821: Handler: Controls Kempston Joystick
Input
E Control response
Handler_Controls_Kempston 46821 IN A,(31) A=controls.
Handles "left" action.
46823 LD E,16 E=16.
46825 BIT 1,A Return if "left" was pressed.
46827 RET NZ
Handles "right" action.
46828 LD E,0 E=0.
46830 BIT 0,A Return if "right" was pressed.
46832 RET NZ
Handles "down" action.
46833 LD E,8 E=8.
46835 BIT 2,A Return if "down" was pressed.
46837 RET NZ
Handles "up" action.
46838 LD E,24 E=24.
46840 BIT 3,A Return if "up" was pressed.
46842 RET NZ
Handles "fire" action.
46843 LD E,128 E=128.
46845 BIT 4,A Return if "fire" was pressed.
46847 RET NZ
Handle no action.
46848 LD E,192 E=192.
46850 RET Return.
Prev: 46783 Up: Map Next: 46851