Prev: BCAE Up: Map Next: BCE7
BCCA: Print Day Caption
Used by the routine at RunGame.
Prints the caption "DAY" on the panel. The colour of the caption is made to stand out against the colour of the room.
Choose a colour that stands out, then print "DAY".
PrintDayCaption BCCA LD A,($5BAD) Fetch the attribute of the room from RoomAttribute.
BCCD CPL Invert it.
BCCE ADD A,$02 Add 02 to it.
BCD0 AND %00000111 Keep the ink colour.
BCD2 OR %01000000 Make it bright.
BCD4 LD ($BCE7),A Store the caption attribute at DayCaption.
BCD7 LD HL,$BCEC Point HL at DayCaptionFont.
BCDA LD ($5BC7),HL Set FontPointer.
BCDD LD DE,$BCE7 Point DE at DayCaption.
BCE0 LD HL,$0F70 Set the pixel position to (70, 0F).
BCE3 PUSH HL Stash the coordinates on the stack, as PrintText expects to find them there.
BCE4 JP PrintText Call PrintText.
Prev: BCAE Up: Map Next: BCE7