Deathchase | Routines |
Prev: 6886 | Up: Map | Next: 6918 |
Used by the routine at 663D.
|
||||
68F0 | LD A,($5DEC) | Are we at full speed | ||
68F3 | AND A | |||
68F4 | RET NZ | Return if we're not | ||
68F5 | LD A,($5DC9) | Are we using KEYBOARD? | ||
68F8 | BIT 0,A | |||
68FA | JR Z,$6903 | Move forward if so | ||
68FC | IN A,($1F) | Check KEMPSTON | ||
68FE | BIT 4,A | Was "fire" pressed? | ||
6900 | JR NZ,$690C | Jump forward if so | ||
6902 | RET | Fire not pressed, return | ||
6903 | LD A,$7F | Check B-SPACE | ||
6905 | IN A,($FE) | |||
6907 | AND $1F | Did we press any keys? | ||
6909 | XOR $1F | |||
690B | RET Z | Return if we didn't | ||
690C | LD A,($5DCB) | User pressed fire, so store it | ||
690F | BIT 7,A | Is a bike already being blown up? | ||
6911 | RET NZ | Return if it is | ||
6912 | LD HL,$5DD7 | Set that we are in mid-fire | ||
6915 | LD (HL),$01 | |||
6917 | RET |
Prev: 6886 | Up: Map | Next: 6918 |