![]() |
Routines |
| Prev: ED9A | Up: Map | Next: EDD9 |
|
Used by the routines at Unpack_Rooms and Event_DrawHeader.
|
||||
| Draw_HeaderFurniture | EDB1 | LD B,(IX+$01) | Fetch the print row and the stored column. | |
| EDB4 | LD A,(IX+$00) | |||
| EDB7 | AND %01111111 | Keep only bits 0-6. | ||
| EDB9 | LD C,A | C=the column. | ||
| EDBA | CALL JumpTable_SetPrintPosition | Call JumpTable_SetPrintPosition. | ||
| EDBD | LD A,(IX+$02) | Write the furniture colour to *ATTR_T. | ||
| EDC0 | LD ($5C8F),A | |||
| EDC3 | LD B,(IX+$05) | B=the remaining height. | ||
| Draw_HeaderFurniture_Target | EDC6 | LD A,(IX+$03) | Fetch the starting glyph and the remaining width. | |
| EDC9 | LD C,(IX+$04) | |||
| Draw_HeaderFurniture_Continue | EDCC | CALL JumpTable_PrintCharacter | Call JumpTable_PrintCharacter. | |
| EDCF | CALL JumpTable_WriteTile | Call JumpTable_WriteTile. | ||
| EDD2 | INC A | Increase the glyph and loop back to Draw_HeaderFurniture_Continue until this row is drawn. | ||
| EDD3 | DEC C | |||
| EDD4 | JR NZ,Draw_HeaderFurniture_Continue | |||
| EDD6 | DJNZ Draw_HeaderFurniture_Target | Decrease the height and loop back to Draw_HeaderFurniture_Target. | ||
| EDD8 | RET | Return. | ||
| Prev: ED9A | Up: Map | Next: EDD9 |