Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

33 рядки
1.3KB

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

Powered by TurnKey Linux.