1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

Target-specific black & white values for use by the target-shared TGI kernel

git-svn-id: svn://svn.cc65.org/cc65/trunk@4993 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2011-04-25 17:11:23 +00:00
parent 012e3e456a
commit 5e37ed1a16
15 changed files with 66 additions and 10 deletions

View File

@ -78,10 +78,7 @@
TGI_API_VERSION = $03
;------------------------------------------------------------------------------
; Color and text constants
TGI_COLOR_BLACK = 0
TGI_COLOR_WHITE = 1
; Text constants
TGI_FONT_BITMAP = 0
TGI_FONT_VECTOR = 1
@ -99,7 +96,13 @@ TGI_CLIP_BOTTOM = $04
TGI_CLIP_TOP = $08
;------------------------------------------------------------------------------
; C accessible Variables
; ASM accessible color constants
.global tgi_color_black:zp ; Target-specific value for black
.global tgi_color_white:zp ; Target-specific value for white
;------------------------------------------------------------------------------
; C accessible variables
.global _tgi_drv ; Pointer to driver
.global _tgi_error ; Last error code
@ -125,7 +128,7 @@ TGI_CLIP_TOP = $08
.global _tgi_aspectratio ; Aspect ratio, fixed point 8.8
;------------------------------------------------------------------------------
; ASM accessible Variables
; ASM accessible variables
.global tgi_clip_x1 ; Coordinate for line clipper
.global tgi_clip_y1 ; Coordinate for line clipper

View File

@ -103,6 +103,7 @@ S_OBJS= _scrsize.o \
sysrmdir.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_mode_table.o\
toascii.o \
vtabz.o \

View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $03

View File

@ -107,6 +107,7 @@ S_OBJS= _scrsize.o \
systime.o \
sysuname.o \
textframe.o \
tgi_colors.o \
tgi_mode_table.o\
toascii.o \
videomode.o \

View File

@ -113,8 +113,9 @@ OBJS = _scrsize.o \
sysrmdir.o \
systime.o \
sysuname.o \
toascii.o \
tgi_colors.o \
tgi_mode_table.o\
toascii.o \
tvtype.o \
ucase_fn.o \
wherex.o \

View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $01

View File

@ -65,6 +65,7 @@ OBJS = _scrsize.o \
revers.o \
systime.o \
sysuname.o \
tgi_colors.o \
wherex.o \
wherey.o \
write.o

View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $01

View File

@ -67,6 +67,7 @@ OBJS = _scrsize.o \
slow.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_mode_table.o \
toggle_videomode.o \
videomode.o

8
libsrc/c128/tgi_colors.s Normal file
View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $01

View File

@ -4,7 +4,6 @@
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
@ -67,6 +66,7 @@ OBJS = _scrsize.o \
revers.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_mode_table.o
#--------------------------------------------------------------------------

8
libsrc/c64/tgi_colors.s Normal file
View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $01

View File

@ -4,7 +4,6 @@
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
@ -64,6 +63,7 @@ OBJS = bllhdr.o \
oserror.o \
read.o \
sysuname.o \
tgi_colors.o \
toascii.o \
uploader.o

8
libsrc/lynx/tgi_colors.s Normal file
View File

@ -0,0 +1,8 @@
;
; Target-specific black & white values for use by the target-shared TGI kernel
;
.include "tgi-kernel.inc"
.export tgi_color_black:zp = $00
.export tgi_color_white:zp = $0F

View File

@ -55,7 +55,7 @@
; Set the drawing color to white
@L1: lda #TGI_COLOR_WHITE
@L1: lda #tgi_color_white
jsr _tgi_setcolor ; tgi_setcolor (TGI_COLOR_WHITE);
; Set the text style