Prev: 60826 Up: Map Next: 60889
60849: Draw Header Furniture
Used by the routines at Unpack_Rooms and Event_DrawHeader.
Draw_HeaderFurniture 60849 LD B,(IX+1) Fetch the print row and the stored column.
60852 LD A,(IX+0)
60855 AND %01111111 Keep only bits 0-6.
60857 LD C,A C=the column.
60858 CALL JumpTable_SetPrintPosition Call JumpTable_SetPrintPosition.
60861 LD A,(IX+2) Write the furniture colour to *ATTR_T.
60864 LD (23695),A
60867 LD B,(IX+5) B=the remaining height.
Draw_HeaderFurniture_Target 60870 LD A,(IX+3) Fetch the starting glyph and the remaining width.
60873 LD C,(IX+4)
Draw_HeaderFurniture_Continue 60876 CALL JumpTable_PrintCharacter Call JumpTable_PrintCharacter.
60879 CALL JumpTable_WriteTile Call JumpTable_WriteTile.
60882 INC A Increase the glyph and loop back to Draw_HeaderFurniture_Continue until this row is drawn.
60883 DEC C
60884 JR NZ,Draw_HeaderFurniture_Continue
60886 DJNZ Draw_HeaderFurniture_Target Decrease the height and loop back to Draw_HeaderFurniture_Target.
60888 RET Return.
Prev: 60826 Up: Map Next: 60889