]> git.sur5r.net Git - cc65/blob - libsrc/c64/soft80.inc
move some stuff to init segment, saves roughly 1480 bytes :)
[cc65] / libsrc / c64 / soft80.inc
1 ;
2 ; Groepaz/Hitmen, 12.10.2015
3 ;
4 ; internal constants for the soft80 implementation
5
6 soft80_lo_charset       = $d000
7 soft80_hi_charset       = $d400
8 soft80_vram             = $d800 ; ram under i/o
9 soft80_colram           = $d800 ; color ram (used for temp. storage)
10 soft80_spriteblock      = $dc00 ; 64 bytes reserved for pointer sprite data
11
12 ; tables for kplot
13 soft80_bitmapxlo        = $dc40       ; (80 bytes)
14 soft80_bitmapxhi        = $dc40 + 80  ; (80 bytes)
15 soft80_vramlo           = $dc40 + 160 ; (25 bytes)
16 ; align to next page for speed
17 soft80_vramhi           = $dd00       ; (25 bytes)
18 soft80_bitmapylo        = $dd00 + 25  ; (25 bytes)
19 soft80_bitmapyhi        = $dd00 + 50  ; (25 bytes)
20
21 soft80_bitmap           = $e000
22
23 charsperline            = 80
24 screenrows              = 25
25
26 ; FIXME: these should match petscii and perhaps come from a common cbm.inc?
27 CH_ESC                  = 95
28 CH_HLINE                = 96
29 CH_CROSS                = 123
30 CH_VLINE                = 125
31 CH_PI                   = 126
32 CH_LTEE                 = 171
33 CH_URCORNER             = 174
34 CH_LLCORNER             = 173
35 CH_ULCORNER             = 176
36 CH_BTEE                 = 177
37 CH_TTEE                 = 178
38 CH_RTEE                 = 179
39 CH_LRCORNER             = 189
40
41 ;-------------------------------------------------------------------------------
42 ; set to 0 to disable the color-ram "voodoo" for debugging purposes
43 .define SOFT80COLORVOODOO 1
44 ; set to 0 to disable special case optimization for the "space" character
45 .define SOFT80FASTSPACE 1
46