![]() |
Routines |
| Prev: 74BE | Up: Map | Next: 74E9 |
|
Used by the routine at VerticalRun_Mirror.
Reverses the bits of one byte.
|
||||
| VerticalRun_Reverse | 74DD | EX DE,HL | Point HL at this end. | |
| 74DE | LD C,$80 | Bit 7 of C is set. | ||
|
Rotate its bits into C.
|
||||
| VerticalRun_ReverseBit | 74E0 | RL (HL) | Jump to VerticalRun_ReverseBit until the byte is reversed. | |
| 74E2 | RR C | |||
| 74E4 | JR NC,VerticalRun_ReverseBit | |||
| 74E6 | LD (HL),C | Write the reversed byte back. | ||
| 74E7 | EX DE,HL | Swap the pointers. | ||
| 74E8 | RET | Return. | ||
| Prev: 74BE | Up: Map | Next: 74E9 |