]> git.sur5r.net Git - cc65/blob - libsrc/c64/extra/soft80mono.s
Merge pull request #5 from cc65/master
[cc65] / libsrc / c64 / extra / soft80mono.s
1 ;
2 ; Groepaz/Hitmen, 19.10.2015
3 ;
4 ; import/overload stubs for the monochrome soft80 implementation
5 ;
6 ; - optimized for size, almost 1k smaller footprint than the full color version
7 ; - textcolor() sets one common text color for the whole screen
8 ;
9         .include "../soft80.inc"
10
11         ; soft80mono_cgetc.s
12         .import soft80mono_cgetc
13         .export _cgetc := soft80mono_cgetc              ; cgetc.s
14
15         ; soft80mono_color.s
16         .import soft80mono_textcolor
17         .import soft80mono_bgcolor
18         .export _textcolor := soft80mono_textcolor      ; color.s
19         .export _bgcolor := soft80mono_bgcolor          ; color.s
20
21         ; soft80mono_cpeekc.s
22         .import soft80_cpeekc
23         .export _cpeekc := soft80_cpeekc                ; cpeekc.s
24
25         ; soft80mono_cpeekcolor.s
26         .import soft80mono_cpeekcolor
27         .export _cpeekcolor := soft80mono_cpeekcolor    ; cpeekcolor.s
28
29         ; soft80mono_cpeekrevers.s
30         .import soft80_cpeekrevers
31         .export _cpeekrevers := soft80_cpeekrevers      ; cpeekrevers.s
32
33         ; soft80mono_cpeeks.s
34         .import soft80_cpeeks
35         .export _cpeeks := soft80_cpeeks                ; cpeeks.s
36
37         ; soft80mono_cputc.s
38         .import soft80mono_cputc
39         .import soft80mono_cputcxy
40         .import soft80mono_cputdirect
41         .import soft80mono_putchar
42         .import soft80mono_newline
43         .import soft80mono_plot
44         .export _cputc := soft80mono_cputc              ; cputc.s
45         .export _cputcxy := soft80mono_cputcxy          ; cputc.s
46         .export cputdirect := soft80mono_cputdirect     ; cputc.s
47         .export putchar := soft80mono_putchar           ; cputc.s
48         .export newline := soft80mono_newline           ; cputc.s
49         .export plot := soft80mono_plot                 ; cputc.s
50
51         ; soft80mono_kclrscr.s
52         .import soft80mono_kclrscr
53         .export _clrscr := soft80mono_kclrscr           ; clrscr.s
54
55         ; soft80mono_kplot.s
56         .import soft80mono_kplot
57         .export PLOT := soft80mono_kplot                ; kplot.s
58
59         ; soft80_kscreen.s
60         .import soft80_screensize
61         .export screensize := soft80_screensize         ; _scrsize.s
62         ; FIXME: use _scrsize.s/remove soft80_scrsize.s
63         ;.export SCREEN := soft80_screensize             ; kernal func (kernal.s)
64
65         ; VIC sprite data for the mouse pointer
66         .export         mcb_spritememory  := soft80_spriteblock
67         .export         mcb_spritepointer := (soft80_vram + $03F8)
68
69         ; Chars used by chline () and cvline ()
70         .exportzp       chlinechar = CH_HLINE
71         .exportzp       cvlinechar = CH_VLINE
72
73         .import         return1
74         .export         _doesclrscrafterexit := return1