Prev: 29660 Up: Map Next: 29736
29681: Address Pixel Row
Used by the routines at ShapeIfPresent, DrawFixedShift, HorizontalRun and VerticalRun.
Turns a pixel row in B into a display address via the character-row table.
PixelRow 29681 LD A,B
29682 CALL RowWord
29685 PUSH DE
29686 POP HL
29687 LD B,0
29689 ADD HL,BC
29690 RET
PixelRow_0 29691 PUSH BC
29692 PUSH HL
29693 LD BC,0
29696 ADD HL,BC
29697 LD B,C
29698 DEC HL
29699 PUSH HL
29700 POP DE
PixelRow_1 29701 RL (HL)
29703 DEC HL
29704 DJNZ PixelRow_1
29706 EX DE,HL
29707 RES 0,(HL)
29709 JR NC,PixelRow_2
29711 SET 0,(HL)
PixelRow_2 29713 POP HL
29714 POP BC
29715 INC H
29716 DJNZ PixelRow_0
29718 RET
This entry point is used by the routine at HorizontalRun.
PixelRow_3 29719 PUSH BC
29720 CALL PixelRow
29723 LD B,8
29725 CALL PixelRow_0
29728 POP BC
29729 INC B
29730 LD A,B
29731 CP 0
29733 JR NZ,PixelRow_3
29735 RET
Prev: 29660 Up: Map Next: 29736