Prev: 29681 Up: Map Next: 29719
29691: Rotate Row Left
Used by the routine at PixelRow_LeftRun.
Rotates one character row left by one bit.
PixelRow_Left 29691 PUSH BC Stash BC and HL on the stack.
29692 PUSH HL
The width immediate is self-modified by HorizontalRun.
29693 LD BC,0 Add that width.
29696 ADD HL,BC
29697 LD B,C Copy the width into B.
29698 DEC HL Point at the last byte.
29699 PUSH HL Copy that address into DE (using the stack).
29700 POP DE
Rotate this row left by one bit.
PixelRow_LeftBit 29701 RL (HL) Rotate this byte left.
29703 DEC HL Step back one byte.
29704 DJNZ PixelRow_LeftBit Jump to PixelRow_LeftBit until the width is rotated.
29706 EX DE,HL Wrap the outgoing bit into bit 0.
29707 RES 0,(HL)
29709 JR NC,PixelRow_Left_Restore
29711 SET 0,(HL)
Restore the pointers after the wrap.
PixelRow_Left_Restore 29713 POP HL Restore HL and BC from the stack.
29714 POP BC
29715 INC H Step to the next pixel row.
29716 DJNZ PixelRow_Left Jump to PixelRow_Left until eight pixel rows are done.
29718 RET Return.
Prev: 29681 Up: Map Next: 29719