Ground Attack | Routines |
Prev: 6E28 | Up: Map | Next: 6E8C |
Used by the routine at Ship_Update.
|
||||
Game_KeyPress | 6E69 | CALL Keyboard_Scan | ||
6E6C | LD B,$0E | |||
6E6E | LD DE,Keyboard_Keys | |||
Game_KeyPress_0 | 6E71 | LD A,(DE) | Compare row being pressed to expected value. | |
6E72 | INC DE | |||
6E73 | CP H | |||
6E74 | JR NZ,Game_KeyPress_1 | Skip if not the same. | ||
6E76 | LD A,(DE) | Compare key being pressed with expected. | ||
6E77 | CP L | |||
6E78 | JR Z,Game_KeyPress_2 | Use if a match | ||
Game_KeyPress_1 | 6E7A | INC DE | Next expected row/key values. | |
6E7B | DJNZ Game_KeyPress_0 | |||
6E7D | LD HL,$FFFF | Set as no keys pressed. | ||
Game_KeyPress_2 | 6E80 | LD (Keyboard_RowPressed),HL | Store result. | |
6E83 | RET | |||
6E84 | NOP | |||
6E85 | NOP | |||
6E86 | NOP | |||
6E87 | NOP | |||
6E88 | NOP | |||
6E89 | NOP | |||
6E8A | NOP | |||
6E8B | NOP |
Prev: 6E28 | Up: Map | Next: 6E8C |