![]() |
Routines |
| Prev: 73F1 | Up: Map | Next: 7417 |
|
Used by the routine at PixelRow_LeftRun.
Rotates one character row left by one bit.
|
||||
| PixelRow_Left | 73FB | PUSH BC | Stash BC and HL on the stack. | |
| 73FC | PUSH HL | |||
|
The width immediate is self-modified by HorizontalRun.
|
||||
| 73FD | LD BC,$0000 | Add that width. | ||
| 7400 | ADD HL,BC | |||
| 7401 | LD B,C | Copy the width into B. | ||
| 7402 | DEC HL | Point at the last byte. | ||
| 7403 | PUSH HL | Copy that address into DE (using the stack). | ||
| 7404 | POP DE | |||
|
Rotate this row left by one bit.
|
||||
| PixelRow_LeftBit | 7405 | RL (HL) | Rotate this byte left. | |
| 7407 | DEC HL | Step back one byte. | ||
| 7408 | DJNZ PixelRow_LeftBit | Jump to PixelRow_LeftBit until the width is rotated. | ||
| 740A | EX DE,HL | Wrap the outgoing bit into bit 0. | ||
| 740B | RES 0,(HL) | |||
| 740D | JR NC,PixelRow_Left_Restore | |||
| 740F | SET 0,(HL) | |||
|
Restore the pointers after the wrap.
|
||||
| PixelRow_Left_Restore | 7411 | POP HL | Restore HL and BC from the stack. | |
| 7412 | POP BC | |||
| 7413 | INC H | Step to the next pixel row. | ||
| 7414 | DJNZ PixelRow_Left | Jump to PixelRow_Left until eight pixel rows are done. | ||
| 7416 | RET | Return. | ||
| Prev: 73F1 | Up: Map | Next: 7417 |