B3F0: Defines the keys for game input.
Game_InputSetKeys |
B3F0 |
XOR A |
|
B3F1 |
LD (Input_Flag),A |
|
B3F4 |
CALL ScreenClearSimple |
|
B3F7 |
LD HL,StrDefineKeyLeft |
|
B3FA |
LD DE,$0604 |
|
B3FD |
CALL String_DrawDouble |
|
B400 |
CALL Game_MenuKeyScan |
|
B403 |
CALL Beep_BasicKey |
|
B406 |
PUSH AF |
|
B407 |
LD (Game_InputLeft),A |
|
B40A |
LD A,C |
|
B40B |
LD (Game_InputLeftAddr),A |
|
B40E |
POP AF |
|
B40F |
CALL Game_InputAsAscii |
|
B412 |
LD DE,$061A |
|
B415 |
LD C,$45 |
|
B417 |
CALL Tile_BlitDoubleHeight |
|
B41A |
LD HL,StrDefineKeyRight |
|
B41D |
LD DE,$0B04 |
|
B420 |
CALL String_DrawDouble |
|
B423 |
CALL Game_MenuKeyScan |
|
B426 |
CALL Beep_BasicKey |
|
B429 |
PUSH AF |
|
B42A |
LD (Game_InputRight),A |
|
B42D |
LD A,C |
|
B42E |
LD (Game_InputRightAddr),A |
|
B431 |
POP AF |
|
B432 |
CALL Game_InputAsAscii |
|
B435 |
LD DE,$0B1A |
|
B438 |
LD C,$45 |
|
B43A |
CALL Tile_BlitDoubleHeight |
|
B43D |
LD HL,StrDefineKeyJump |
|
B440 |
LD DE,$1004 |
|
B443 |
CALL String_DrawDouble |
|
B446 |
CALL Game_MenuKeyScan |
|
B449 |
CALL Beep_BasicKey |
|
B44C |
PUSH AF |
|
B44D |
LD (Game_InputJump),A |
|
B450 |
LD A,C |
|
B451 |
LD (Game_InputJumpAddr),A |
|
B454 |
POP AF |
|
B455 |
CALL Game_InputAsAscii |
|
B458 |
LD DE,$101A |
|
B45B |
LD C,$45 |
|
B45D |
CALL Tile_BlitDoubleHeight |
|
B460 |
LD B,$32 |
Game_InputSetKeys_0 |
B462 |
CALL Pause_Short |
|
B465 |
DJNZ Game_InputSetKeys_0 |
|
B467 |
RET |