Prev: B3EA Up: Map Next: B468
B3F0: Defines the keys for game input.
Used by the routine at MainMenu.
Input
Output
Game_InputSetKeys B3F0 XOR A Clear Kempston flag.
B3F1 LD (Input_Flag),A
B3F4 CALL ScreenClearSimple
B3F7 LD HL,StrDefineKeyLeft Ask user for left key.
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 Display users choice on screen.
B412 LD DE,$061A
B415 LD C,$45
B417 CALL Tile_BlitDoubleHeight
B41A LD HL,StrDefineKeyRight Ask user for right key.
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 Display users choice on screen.
B435 LD DE,$0B1A
B438 LD C,$45
B43A CALL Tile_BlitDoubleHeight
B43D LD HL,StrDefineKeyJump Ask user for jump key.
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 Display user choice on screen.
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
Prev: B3EA Up: Map Next: B468