![]() |
Routines |
| Prev: BFDB | Up: Map | Next: C00B |
|
The input bits in $5BB5 have pick-up/drop in bit 4 for every control method. With a joystick and directional control, though, the stick's down direction is a direction rather than pick-up, so bit 5 -- set by keys on the keyboard -- is used instead.
|
||||||||
| chk_pickup_drop | BFFB | LD HL,$5BA4 | joystick (method not 0)... | |||||
| BFFE | LD A,(HL) | |||||||
| BFFF | AND $06 | |||||||
| C001 | LD A,($5BB5) | |||||||
| C004 | JR Z,test_pickup_bit | |||||||
| C006 | BIT 3,(HL) | ...and directional control: use bit 5 | ||||||
| C008 | JR Z,test_pickup_bit | |||||||
| C00A | RRCA | |||||||
| Prev: BFDB | Up: Map | Next: C00B |