Prev: D2EF Up: Map Next: D320
D30D: 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 D30D LD A,($C44D) Fetch the graphic number of the sun/moon from SunMoonObject.
D310 AND %00000001 Keep bit 0, which is set for the moon.
D312 LD A,$46 Set A to the attribute for bright yellow on black.
D314 JR Z,ColourSunMoon_Fill Jump to ColourSunMoon_Fill if it is the sun.
D316 INC A Change it to bright white on black.
ColourSunMoon_Fill D317 LD HL,$5AB8 Point HL at the attributes of the sun/moon.
D31A LD BC,$0402 Set the width to 04 and the height to 02.
D31D JP FillWindow Jump to FillWindow.
Prev: D2EF Up: Map Next: D320