Prev: C2C4 Up: Map Next: C2DF
C2C8: Draw Compass Icon
Used by the routine at StartGame.
Draws the compass icon in the status panel, which is made of two blocks of four characters (two by two) to make an icon that is four characters wide and two high.
Print the left block of the icon.
DrawCompassIcon C2C8 LD HL,$7A6F Point at the character set of the status panel icons.
C2CB LD ($BBAC),HL Set it as the font.
C2CE LD HL,$507B Set the screen position of the first block of the icon to 507B (in the screen buffer).
C2D1 LD DE,$C2DF Point at the list of characters of the icon.
C2D4 LD A,$46 Use bright yellow ink (attribute 46).
C2D6 EX AF,AF' Stash the colour on the stack.
C2D7 CALL PrintCharacterBlock Print the first block of the icon.
Print the right block of the icon.
C2DA INC L Move the screen position on by two characters.
C2DB INC L
C2DC JP PrintCharacterBlock Jump to PrintCharacterBlock to print the second block of the icon.
Prev: C2C4 Up: Map Next: C2DF