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
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
.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
sysrmdir.o \
systime.o \
sysuname.o \
+ tgi_colors.o \
tgi_mode_table.o\
toascii.o \
vtabz.o \
--- /dev/null
+;
+; 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
systime.o \
sysuname.o \
textframe.o \
+ tgi_colors.o \
tgi_mode_table.o\
toascii.o \
videomode.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 \
--- /dev/null
+;
+; 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
revers.o \
systime.o \
sysuname.o \
+ tgi_colors.o \
wherex.o \
wherey.o \
write.o
--- /dev/null
+;
+; 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
slow.o \
systime.o \
sysuname.o \
+ tgi_colors.o \
tgi_mode_table.o \
toggle_videomode.o \
videomode.o
--- /dev/null
+;
+; 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
.SUFFIXES: .o .s .c
-
#--------------------------------------------------------------------------
# Programs and flags
revers.o \
systime.o \
sysuname.o \
+ tgi_colors.o \
tgi_mode_table.o
#--------------------------------------------------------------------------
--- /dev/null
+;
+; 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
.SUFFIXES: .o .s .c
-
#--------------------------------------------------------------------------
# Programs and flags
oserror.o \
read.o \
sysuname.o \
+ tgi_colors.o \
toascii.o \
uploader.o
--- /dev/null
+;
+; 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
; 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