Prev: C28A Up: Map Next: C2C4
C29A: Print the heading on the panel: north, or south with the town turned round
Used by the routines at NEW_GAME and TURN_TOWN.
Four characters, a word, from the panel's icons (PANEL_ICONS): north in cyan, or while VIEW's bit 0 is set south in magenta, which way the town is seen from. At a new game, and whenever it is turned round (TURN_TOWN).
PRINT_HEADING C29A PUSH DE which word, and its colour
C29B LD A,(VIEW)
C29E AND $01
C2A0 JR NZ,PRINT_HEADING_2
C2A2 LD HL,HEADING_CHARS
C2A5 LD A,$45
PRINT_HEADING_0 C2A7 EX AF,AF' its four characters in a row, bottom right of the panel
C2A8 LD (FONT_BASE),HL
C2AB LD HL,$50DB
C2AE LD DE,HEADING_ORDER
C2B1 LD B,$04
PRINT_HEADING_1 C2B3 LD A,(DE)
C2B4 INC DE
C2B5 CALL PRINT_CHAR_COLOURED
C2B8 INC L
C2B9 DJNZ PRINT_HEADING_1
C2BB POP DE
C2BC RET
PRINT_HEADING_2 C2BD LD HL,HEADING_TURNED_CHARS south
C2C0 LD A,$43
C2C2 JR PRINT_HEADING_0
Prev: C28A Up: Map Next: C2C4