]> git.sur5r.net Git - cc65/blobdiff - asminc/tgi-kernel.inc
Fixed _textcolor definition.
[cc65] / asminc / tgi-kernel.inc
index 9dd0dd45366919b50ccef0dd7c4b94c2a4b89f9d..fba78afff51d2d0b52dd88cb2a7ea73d84213b1e 100644 (file)
@@ -6,7 +6,7 @@
 ;*                                                                           */
 ;*                                                                           */
 ;*                                                                           */
-;* (C) 2002-2009, Ullrich von Bassewitz                                      */
+;* (C) 2002-2012, Ullrich von Bassewitz                                      */
 ;*                Roemerstrasse 52                                           */
 ;*                D-70794 Filderstadt                                        */
 ;* EMail:         uz@cc65.org                                                */
@@ -39,6 +39,7 @@
 .struct TGI_HDR
         ID                  .byte   3   ; Contains 0x74, 0x67, 0x69 ("tgi")
         VERSION             .byte   1   ; Interface version
+        LIBREF              .addr       ; Library reference
         VARS                .struct
             XRES            .word   1   ; X resolution
             YRES            .word   1   ; Y resolution
@@ -54,7 +55,7 @@
             UNINSTALL       .addr       ; UNINSTALL routine
             INIT            .addr       ; INIT routine
             DONE            .addr       ; DONE routine
-            GETERROR               .addr       ; GETERROR routine
+            GETERROR        .addr       ; GETERROR routine
             CONTROL         .addr       ; CONTROL routine
             CLEAR           .addr       ; CLEAR routine
             SETVIEWPAGE     .addr       ; SETVIEWPAGE routine
             BAR             .addr       ; BAR routine
             TEXTSTYLE       .addr       ; TEXTSTYLE routine
             OUTTEXT         .addr       ; OUTTEXT routine
-            IRQ             .addr       ; IRQ routine
         .endstruct
 .endstruct
 
 ;------------------------------------------------------------------------------
 ; The TGI API version, stored at TGI_HDR_VERSION
 
-TGI_API_VERSION         = $04
+TGI_API_VERSION         = $06
 
 ;------------------------------------------------------------------------------
 ; Bitmapped tgi driver flags, stored in TGI_HDR::VARS::FLAGS.
@@ -106,14 +106,14 @@ TGI_CLIP_TOP            = $08
 ;------------------------------------------------------------------------------
 ; ASM accessible color constants
 
-       .global tgi_color_black:zp      ; Target-specific value for black
-       .global tgi_color_white:zp      ; Target-specific value for white
+        .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_drv                ; Pointer to driver
+        .global _tgi_error              ; Last error code
         .global _tgi_gmode              ; Flag: graphics mode active
         .global _tgi_curx               ; Current drawing cursor X
         .global _tgi_cury               ; Current drawing cursor Y
@@ -134,14 +134,15 @@ TGI_CLIP_TOP            = $08
         .global _tgi_fontwidth          ; System font width
         .global _tgi_fontheight         ; System font height
         .global _tgi_aspectratio        ; Aspect ratio, fixed point 8.8
+        .global _tgi_flags              ; TGI driver flags
 
 ;------------------------------------------------------------------------------
 ; ASM accessible variables
 
-               .global tgi_clip_x1             ; Coordinate for line clipper
-               .global tgi_clip_y1             ; Coordinate for line clipper
-               .global tgi_clip_x2             ; Coordinate for line clipper
-               .global tgi_clip_y2             ; Coordinate for line clipper
+        .global tgi_clip_x1             ; Coordinate for line clipper
+        .global tgi_clip_y1             ; Coordinate for line clipper
+        .global tgi_clip_x2             ; Coordinate for line clipper
+        .global tgi_clip_y2             ; Coordinate for line clipper
 
 ;------------------------------------------------------------------------------
 ; Driver entry points
@@ -150,7 +151,7 @@ TGI_CLIP_TOP            = $08
         .global tgi_uninstall
         .global tgi_init
         .global tgi_done
-       .global tgi_geterror
+        .global tgi_geterror
         .global tgi_control
         .global tgi_clear
         .global tgi_setviewpage
@@ -169,6 +170,7 @@ TGI_CLIP_TOP            = $08
 ;------------------------------------------------------------------------------
 ; ASM functions
 
+        .global tgi_clear_ptr
         .global tgi_clippedline
         .global tgi_curtoxy
         .global tgi_getset
@@ -190,7 +192,7 @@ TGI_CLIP_TOP            = $08
         .global _tgi_clear
         .global _tgi_done
         .global _tgi_ellipse
-       .global _tgi_getaspectratio
+        .global _tgi_getaspectratio
         .global _tgi_getcolor
         .global _tgi_getcolorcount
         .global _tgi_getdefpalette
@@ -202,6 +204,8 @@ TGI_CLIP_TOP            = $08
         .global _tgi_getpagecount
         .global _tgi_getpalette
         .global _tgi_getpixel
+        .global _tgi_gettextheight
+        .global _tgi_gettextwidth
         .global _tgi_getxres
         .global _tgi_getyres
         .global _tgi_gotoxy
@@ -216,15 +220,14 @@ TGI_CLIP_TOP            = $08
         .global _tgi_outtext
         .global _tgi_outtextxy
         .global _tgi_pieslice
-       .global _tgi_setaspectratio
+        .global _tgi_setaspectratio
         .global _tgi_setcolor
         .global _tgi_setdrawpage
         .global _tgi_setpalette
         .global _tgi_setpixel
+        .global _tgi_settextdir
+        .global _tgi_settextscale
+        .global _tgi_settextstyle
         .global _tgi_setviewpage
-        .global _tgi_textheight
-        .global _tgi_textscale
-        .global _tgi_textstyle
-        .global _tgi_textwidth
         .global _tgi_uninstall
         .global _tgi_unload