|
- #ifndef CHARSET_H
- #define CHARSET_H
-
- /* Custom character set location (VIC bank 0, 2 KB). See docs and assumption A3. */
- #define CHARSET_ADDR 0x3800u
-
- /* The charset storage, placed at CHARSET_ADDR by the linker (cfg/stonehold-64.cfg). */
- extern unsigned char charset[2048];
-
- /* Game glyph screen codes.
- ** cc65 runs the C64 in the lower/upper-case character set, where conio puts
- ** capital letters at screen codes 65-90. Codes 0-127 therefore keep the ROM
- ** lower/upper-case shapes, and the game's own glyphs live at 128 and up.
- ** (Codes 128-255 are the reverse-video copies in ROM; this game does not use revers().)
- **
- ** Each game glyph code has its colour in the low nibble, so the code can be written to
- ** screen RAM and colour RAM unchanged (map tile codes: see map.h).
- */
- #define GLYPH_FLOOR 0x8B /* = TILE_FLOOR, dark grey */
- #define GLYPH_ROCK_SOFT 0x99 /* = TILE_SOFT, brown */
- #define GLYPH_ROCK_HARD 0xAC /* = TILE_HARD, grey */
- #define GLYPH_MARKED 0x97 /* = TILE_SOFT_MARKED, yellow (also at 0xA7, 0xD7, 0xE7) */
- #define GLYPH_DWARF 0x88 /* orange */
- #define GLYPH_CURSOR 0x81 /* white */
-
- /* Build the charset at CHARSET_ADDR and point the VIC-II at it. */
- void charset_install(void);
-
- /* Point the VIC-II back at the character set that was active before charset_install(). */
- void charset_remove(void);
-
- #endif
|