8876: User input checking
check_user_input |
8876 |
LD A,($A231) |
|
8879 |
LD HL,$A0D5 |
|
887C |
CP $04 |
|
887E |
JR NZ,check_user_input_0 |
|
8880 |
LD (HL),$00 |
|
8882 |
RET |
check_user_input_0 |
8883 |
LD A,($A16F) |
|
8886 |
AND (HL) |
|
8887 |
LD (HL),A |
|
8888 |
AND $E0 |
|
888A |
RET Z |
|
888B |
RLA |
|
888C |
JR C,quit_key |
|
888E |
RLA |
|
888F |
JR C,pause_key |
|
8891 |
LD HL,$A24E |
|
8894 |
LD A,(HL) |
|
8895 |
AND A |
|
8896 |
RET NZ |
|
8897 |
LD A,($A170) |
|
889A |
AND A |
|
889B |
RET Z |
|
889C |
LD (HL),$3C |
|
889E |
LD HL,$9917 |
|
88A1 |
LD A,$02 |
|
88A3 |
CALL chatter |
|
88A6 |
JP turbo_sfx_play_hook |
quit_key |
88A9 |
LD A,($A26A) |
|
88AC |
AND A |
|
88AD |
RET NZ |
|
88AE |
CALL drive_chatter_stop |
|
88B1 |
CALL fill_attributes |
|
88B4 |
LD ($A16F),A |
|
88B7 |
INC A |
|
88B8 |
LD ($A26A),A |
|
88BB |
RET |
pause_key |
88BC |
CALL silence_audio_hook |
check_user_input_1 |
88BF |
CALL keyscan |
|
88C2 |
AND $40 |
|
88C4 |
JR NZ,check_user_input_1 |
check_user_input_2 |
88C6 |
CALL keyscan |
|
88C9 |
AND $7F |
|
88CB |
JR Z,check_user_input_2 |
check_user_input_3 |
88CD |
CALL keyscan |
|
88D0 |
AND $7F |
|
88D2 |
JR NZ,check_user_input_3 |
|
88D4 |
RET |