Prev: 53999 Up: Map Next: 54048
54029: Colour Sun Moon
Used by the routines at RunGame and DisplaySunMoonFrame.
Sets the colour of the sun or the moon in its window: bright yellow for the sun, or bright white for the moon.
Colour the window yellow for the sun, or white for the moon.
ColourSunMoon 54029 LD A,(50253) Fetch the graphic number of the sun/moon from SunMoonObject.
54032 AND %00000001 Keep bit 0, which is set for the moon.
54034 LD A,70 Set A to the attribute for bright yellow on black.
54036 JR Z,ColourSunMoon_Fill Jump to ColourSunMoon_Fill if it is the sun.
54038 INC A Change it to bright white on black.
ColourSunMoon_Fill 54039 LD HL,23224 Point HL at the attributes of the sun/moon.
54042 LD BC,1026 Set the width to 4 and the height to 2.
54045 JP FillWindow Jump to FillWindow.
Prev: 53999 Up: Map Next: 54048