Use a structure for the TGI header as with other drivers.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3285 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-11-07 11:30:45 +00:00
parent 8b0c3d3425
commit b1afca6bb3

View File

@@ -34,46 +34,49 @@
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; Offsets into the driver header ; The driver header
TGI_HDR_ID = 0 ; Contains 0x74, 0x67, 0x69 ("tgi") .struct TGI_HDR
TGI_HDR_VERSION = 3 ; Interface version ID .byte 3 ; Contains 0x74, 0x67, 0x69 ("tgi")
TGI_HDR_XRES = 4 ; X resolution VERSION .byte 1 ; Interface version
TGI_HDR_YRES = 6 ; Y resolution VARS .struct
TGI_HDR_COLORCOUNT = 8 ; Number of available colors XRES .word 1 ; X resolution
TGI_HDR_PAGECOUNT = 9 ; Number of screens available YRES .word 1 ; Y resolution
TGI_HDR_FONTSIZE_X = 10 ; System font size in X direction COLORCOUNT .byte 1 ; Number of available colors
TGI_HDR_FONTSIZE_Y = 11 ; System font size in Y direction PAGECOUNT .byte 1 ; Number of screens available
TGI_HDR_RES = 12 ; Reserved for extensions FONTSIZE_X .byte 1 ; System font size in X direction
FONTSIZE_Y .byte 1 ; System font size in Y direction
TGI_HDR_JUMPTAB = 16 .endstruct
TGI_HDR_INSTALL = TGI_HDR_JUMPTAB+0 ; INSTALL routine RESERVED .byte 4 ; Reserved for extensions
TGI_HDR_UNINSTALL = TGI_HDR_JUMPTAB+2 ; UNINSTALL routine JUMPTAB .struct
TGI_HDR_INIT = TGI_HDR_JUMPTAB+4 ; INIT routine INSTALL .addr ; INSTALL routine
TGI_HDR_DONE = TGI_HDR_JUMPTAB+6 ; DONE routine UNINSTALL .addr ; UNINSTALL routine
TGI_HDR_GETERROR = TGI_HDR_JUMPTAB+8 ; GETERROR routine INIT .addr ; INIT routine
TGI_HDR_CONTROL = TGI_HDR_JUMPTAB+10 ; CONTROL routine DONE .addr ; DONE routine
TGI_HDR_CLEAR = TGI_HDR_JUMPTAB+12 ; CLEAR routine GETERROR .addr ; GETERROR routine
TGI_HDR_SETVIEWPAGE = TGI_HDR_JUMPTAB+14 ; SETVIEWPAGE routine CONTROL .addr ; CONTROL routine
TGI_HDR_SETDRAWPAGE = TGI_HDR_JUMPTAB+16 ; SETDRAWPAGE routine CLEAR .addr ; CLEAR routine
TGI_HDR_SETCOLOR = TGI_HDR_JUMPTAB+18 ; SETCOLOR routine SETVIEWPAGE .addr ; SETVIEWPAGE routine
TGI_HDR_SETPALETTE = TGI_HDR_JUMPTAB+20 ; SETPALETTE routine SETDRAWPAGE .addr ; SETDRAWPAGE routine
TGI_HDR_GETPALETTE = TGI_HDR_JUMPTAB+22 ; GETPALETTE routine SETCOLOR .addr ; SETCOLOR routine
TGI_HDR_GETDEFPALETTE = TGI_HDR_JUMPTAB+24 ; GETDEFPALETTE routine SETPALETTE .addr ; SETPALETTE routine
TGI_HDR_SETPIXEL = TGI_HDR_JUMPTAB+26 ; SETPIXEL routine GETPALETTE .addr ; GETPALETTE routine
TGI_HDR_GETPIXEL = TGI_HDR_JUMPTAB+28 ; GETPIXEL routine GETDEFPALETTE .addr ; GETDEFPALETTE routine
TGI_HDR_LINE = TGI_HDR_JUMPTAB+30 ; LINE routine SETPIXEL .addr ; SETPIXEL routine
TGI_HDR_BAR = TGI_HDR_JUMPTAB+32 ; BAR routine GETPIXEL .addr ; GETPIXEL routine
TGI_HDR_CIRCLE = TGI_HDR_JUMPTAB+34 ; CIRCLE routine LINE .addr ; LINE routine
TGI_HDR_TEXTSTYLE = TGI_HDR_JUMPTAB+36 ; TEXTSTYLE routine BAR .addr ; BAR routine
TGI_HDR_OUTTEXT = TGI_HDR_JUMPTAB+38 ; OUTTEXT routine CIRCLE .addr ; CIRCLE routine
TEXTSTYLE .addr ; TEXTSTYLE routine
TGI_HDR_JUMPCOUNT = 20 ; Number of jump vectors OUTTEXT .addr ; OUTTEXT routine
IRQ .addr ; IRQ routine
.endstruct
.endstruct
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; The TGI API version, stored at TGI_HDR_VERSION ; The TGI API version, stored at TGI_HDR_VERSION
TGI_API_VERSION = $01 TGI_API_VERSION = $02
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; Text style constants ; Text style constants