56865: GET_PLAYER_INPUT
GET_PLAYER_INPUT |
56865 |
LD A,(59648) |
|
56868 |
CP 32 |
|
56870 |
JP Z,GET_PLAYER_INPUT_0 |
|
56873 |
JP C,GET_PLAYER_INPUT_1 |
|
56876 |
CP 40 |
|
56878 |
RET C |
|
56879 |
RRA |
|
56880 |
RET NC |
|
56881 |
LD DE,(59649) |
|
56885 |
SRL D |
|
56887 |
SRL E |
|
56889 |
INC E |
|
56890 |
INC D |
|
56891 |
JP L56342 |
GET_PLAYER_INPUT_0 |
56894 |
LD BC,65535 |
|
56897 |
CALL DELAY_0 |
|
56900 |
CALL DELAY_0 |
|
56903 |
LD A,(59661) |
|
56906 |
DEC A |
|
56907 |
LD (59661),A |
|
56910 |
RET NZ |
|
56911 |
CALL L56194 |
|
56914 |
LD SP,(59662) |
|
56918 |
LD HL,59654 |
|
56921 |
RET |
GET_PLAYER_INPUT_1 |
56922 |
LD A,(59664) |
|
56925 |
CP 0 |
|
56927 |
JP Z,GET_KEYBOARD_INPUT |
|
56930 |
CP 1 |
|
56932 |
JP Z,GET_KEMPSTON_INPUT |
|
56935 |
CP 2 |
|
56937 |
JP Z,GET_CURSOR_INPUT |
|
56940 |
JP GET_SINCLAIR_INPUT |
GET_KEYBOARD_INPUT |
56943 |
LD C,0 |
GET_KEY_RIGHT |
56945 |
LD A,223 |
|
56947 |
IN A,(254) |
|
56949 |
BIT 0,A |
|
56951 |
JR NZ,GET_KEY_LEFT |
|
56953 |
SET 3,C |
GET_KEY_LEFT |
56955 |
LD A,223 |
|
56957 |
IN A,(254) |
|
56959 |
BIT 1,A |
|
56961 |
JR NZ,GET_KEY_DOWN |
|
56963 |
SET 4,C |
GET_KEY_DOWN |
56965 |
LD A,253 |
|
56967 |
IN A,(254) |
|
56969 |
BIT 0,A |
|
56971 |
JR NZ,GET_KEY_UP |
|
56973 |
SET 2,C |
GET_KEY_UP |
56975 |
LD A,251 |
|
56977 |
IN A,(254) |
|
56979 |
BIT 0,A |
|
56981 |
JR NZ,GET_KEY_FIRE |
|
56983 |
SET 1,C |
GET_KEY_FIRE |
56985 |
LD A,127 |
|
56987 |
IN A,(254) |
|
56989 |
BIT 2,A |
|
56991 |
JR NZ,GET_PLAYER_INPUT_2 |
|
56993 |
SET 0,C |
GET_PLAYER_INPUT_2 |
56995 |
LD A,C |
|
56996 |
JP STORE_PLAYER_INPUT |
GET_KEMPSTON_INPUT |
56999 |
IN A,(31) |
|
57001 |
LD B,A |
|
57002 |
LD C,0 |
|
57004 |
RR B |
|
57006 |
RR B |
|
57008 |
RL C |
|
57010 |
RRA |
|
57011 |
RL C |
|
57013 |
RRA |
|
57014 |
RRA |
|
57015 |
RL C |
|
57017 |
RRA |
|
57018 |
RL C |
|
57020 |
RRA |
|
57021 |
RL C |
|
57023 |
LD A,C |
|
57024 |
JP STORE_PLAYER_INPUT |
GET_CURSOR_INPUT |
57027 |
LD A,239 |
|
57029 |
IN A,(254) |
|
57031 |
LD C,0 |
|
57033 |
RRA |
|
57034 |
JR C,GET_CURSOR_INPUT_1 |
|
57036 |
SET 0,C |
GET_CURSOR_INPUT_1 |
57038 |
RRA |
|
57039 |
RRA |
|
57040 |
JR C,GET_CURSOR_INPUT_2 |
|
57042 |
SET 3,C |
GET_CURSOR_INPUT_2 |
57044 |
RRA |
|
57045 |
JR C,GET_CURSOR_INPUT_3 |
|
57047 |
SET 1,C |
GET_CURSOR_INPUT_3 |
57049 |
RRA |
|
57050 |
JR C,GET_CURSOR_INPUT_4 |
|
57052 |
SET 2,C |
GET_CURSOR_INPUT_4 |
57054 |
LD A,247 |
|
57056 |
IN A,(254) |
|
57058 |
BIT 4,A |
|
57060 |
JR NZ,GET_CURSOR_INPUT_5 |
|
57062 |
SET 4,C |
GET_CURSOR_INPUT_5 |
57064 |
LD A,C |
|
57065 |
JP STORE_PLAYER_INPUT |
GET_SINCLAIR_INPUT |
57068 |
LD A,239 |
|
57070 |
IN A,(254) |
|
57072 |
CPL |
STORE_PLAYER_INPUT |
57073 |
AND 31 |
|
57075 |
PUSH AF |
|
57076 |
LD B,A |
|
57077 |
LD A,(59652) |
|
57080 |
AND B |
|
57081 |
LD (59651),A |
|
57084 |
POP AF |
|
57085 |
BIT 0,A |
|
57087 |
LD A,30 |
|
57089 |
JP NZ,GET_PLAYER_INPUT_3 |
|
57092 |
LD A,31 |
GET_PLAYER_INPUT_3 |
57094 |
LD (59652),A |
|
57097 |
RET |