![]() |
Routines |
| Prev: D03E | Up: Map | Next: D05C |
|
Part of interface_ii. After this, bit 0 is 5 (fire), 1 is 4 (up), 2 is 3 (down), 3 is 2 (right), 4 is 1 (left) -- the same meanings as the 0 to 6 half-row's bits.
|
||||
| reverse_if2_bits | D046 | RRA | one bit out of A into the bottom of C | |
| D047 | RL C | |||
| D049 | DJNZ reverse_if2_bits | |||
| D04B | LD A,C | C = the reversed bits | ||
| D04C | POP BC | |||
| D04D | LD C,A | |||
| D04E | LD A,$EF | combine with half-row 0 to 6 | ||
| D050 | CALL read_port | |||
| D053 | OR C | |||
| D054 | LD C,$00 | fire (5 or 0): jump, bit 3 | ||
| D056 | BIT 0,A | |||
| D058 | JR Z,if2_up | |||
| D05A | SET 3,C | |||
| Prev: D03E | Up: Map | Next: D05C |