![]() |
Routines |
| Prev: 29886 | Up: Map | Next: 29929 |
|
Used by the routine at VerticalRun_Mirror.
Reverses the bits of one byte.
|
||||
| VerticalRun_Reverse | 29917 | EX DE,HL | Point HL at this end. | |
| 29918 | LD C,128 | Bit 7 of C is set. | ||
|
Rotate its bits into C.
|
||||
| VerticalRun_ReverseBit | 29920 | RL (HL) | Jump to VerticalRun_ReverseBit until the byte is reversed. | |
| 29922 | RR C | |||
| 29924 | JR NC,VerticalRun_ReverseBit | |||
| 29926 | LD (HL),C | Write the reversed byte back. | ||
| 29927 | EX DE,HL | Swap the pointers. | ||
| 29928 | RET | Return. | ||
| Prev: 29886 | Up: Map | Next: 29929 |