Prev: 48788 Up: Map Next: 48842
48818: Unused: Draw 1-Wide Sprite With Attributes
Unused alternative routine to draw a 1-wide sprite and apply its attributes in a single pass.
Unused_Draw_1Wide 48818 LD B,8 Set the row counter to 8 in B.
Unused_Draw_1Wide_Row_Loop 48820 LD A,(DE) OR the sprite data byte from *DE onto the screen at *HL.
48821 OR (HL)
48822 LD (HL),A
48823 INC H Move down one pixel row in the screen buffer.
48824 LD A,H Check if the pixel row has crossed a character boundary.
48825 AND C
48826 CALL Z,48487 Call 48487 to adjust the screen address if needed.
48829 INC DE Advance the sprite data pointer.
48830 DJNZ 48820 Decrease the row counter and loop back to Unused_Draw_1Wide_Row_Loop until all 8 rows are drawn.
Apply attributes for the 1-wide sprite.
48832 POP HL Restore the screen address from the stack.
48833 LD E,(IX+0) Load the sprite X position from *IX+0 into E.
48836 LD D,0 Set D to 0 (flag: one column wide).
48838 CALL 48842 Call Unused_Apply_Attributes to apply the sprite attributes.
48841 RET Return.
Prev: 48788 Up: Map Next: 48842