Prev: 48302 Up: Map Next: 48359
48330: 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 48330 LD A,(23469) Fetch the attribute of the room from RoomAttribute.
48333 CPL Invert it.
48334 ADD A,2 Add 2 to it.
48336 AND %00000111 Keep the ink colour.
48338 OR %01000000 Make it bright.
48340 LD (48359),A Store the caption attribute at DayCaption.
48343 LD HL,48364 Point HL at DayCaptionFont.
48346 LD (23495),HL Set FontPointer.
48349 LD DE,48359 Point DE at DayCaption.
48352 LD HL,3952 Set the pixel position to (112, 15).
48355 PUSH HL Stash the coordinates on the stack, as PrintText expects to find them there.
48356 JP PrintText Call PrintText.
Prev: 48302 Up: Map Next: 48359