Prev: 7428 Up: Map Next: 745D
7445: Rotate Row Right
Used by the routine at HorizontalRun_RightRun.
Rotates one character row right by one bit.
HorizontalRun_Right 7445 PUSH BC Stash BC and HL on the stack.
7446 PUSH HL
The width immediate is self-modified by VerticalRun.
7447 LD B,$00 Load that width.
7449 PUSH HL Copy HL to DE (using the stack).
744A POP DE
Rotate this row right by one bit.
HorizontalRun_RightBit 744B RR (HL) Rotate this byte right.
744D INC HL Step on one byte.
744E DJNZ HorizontalRun_RightBit Jump to HorizontalRun_RightBit until the width is rotated.
7450 EX DE,HL Point HL at the start of the row.
7451 RES 7,(HL) Clear bit 7.
7453 JR NC,HorizontalRun_Right_Restore Jump to HorizontalRun_Right_Restore if the outgoing bit is reset.
7455 SET 7,(HL) Set bit 7.
Restore the pointers after the wrap.
HorizontalRun_Right_Restore 7457 POP HL Restore HL and BC from the stack.
7458 POP BC
7459 INC H Step to the next pixel row.
745A DJNZ HorizontalRun_Right Jump to HorizontalRun_Right until eight pixel rows are done.
745C RET Return.
Prev: 7428 Up: Map Next: 745D