mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
Added a new flags byte to the TGI headers. Bumped the API version.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5083 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -44,9 +44,10 @@
|
|||||||
YRES .word 1 ; Y resolution
|
YRES .word 1 ; Y resolution
|
||||||
COLORCOUNT .byte 1 ; Number of available colors
|
COLORCOUNT .byte 1 ; Number of available colors
|
||||||
PAGECOUNT .byte 1 ; Number of screens available
|
PAGECOUNT .byte 1 ; Number of screens available
|
||||||
FONTWIDTH .byte 1 ; System font width
|
FONTWIDTH .byte 1 ; System font width in pixel
|
||||||
FONTHEIGHT .byte 1 ; System font height
|
FONTHEIGHT .byte 1 ; System font height in pixel
|
||||||
ASPECTRATIO .word 1 ; Fixed point 8.8 format
|
ASPECTRATIO .word 1 ; Fixed point 8.8 format
|
||||||
|
FLAGS .byte 1 ; TGI driver flags
|
||||||
.endstruct
|
.endstruct
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .addr ; INSTALL routine
|
INSTALL .addr ; INSTALL routine
|
||||||
@@ -75,7 +76,14 @@
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The TGI API version, stored at TGI_HDR_VERSION
|
; The TGI API version, stored at TGI_HDR_VERSION
|
||||||
|
|
||||||
TGI_API_VERSION = $03
|
TGI_API_VERSION = $04
|
||||||
|
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
; Bitmapped tgi driver flags, stored in TGI_HDR::VARS::FLAGS.
|
||||||
|
; Beware: Some of the bits are tested using the BIT instruction, so do not
|
||||||
|
; change the values without checking the code!
|
||||||
|
|
||||||
|
TGI_BM_FONT_FINESCALE = $80 ; Bitmap fonts are fine grained scalable
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Text constants
|
; Text constants
|
||||||
|
@@ -84,6 +84,7 @@ pages: .byte 2 ; Number of screens available
|
|||||||
.byte 7 ; System font X size
|
.byte 7 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $00EA ; Aspect ratio (based on 4/3 display)
|
.word $00EA ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. With the exception of IRQ, all entries must be
|
; Next comes the jump table. With the exception of IRQ, all entries must be
|
||||||
; valid and may point to an RTS for test versions (function not implemented).
|
; valid and may point to an RTS for test versions (function not implemented).
|
||||||
|
@@ -54,6 +54,7 @@ Y2 := ptr4
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $0198 ; Aspect ratio (based on 4/3 display)
|
.word $0198 ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. With the exception of IRQ, all entries must be
|
; Next comes the jump table. With the exception of IRQ, all entries must be
|
||||||
; valid and may point to an RTS for test versions (function not implemented).
|
; valid and may point to an RTS for test versions (function not implemented).
|
||||||
@@ -256,7 +257,7 @@ text: jsr HOME
|
|||||||
; Done, reset the error code
|
; Done, reset the error code
|
||||||
lda #TGI_ERR_OK
|
lda #TGI_ERR_OK
|
||||||
beq :+ ; Branch always
|
beq :+ ; Branch always
|
||||||
|
|
||||||
; Done, set the error code
|
; Done, set the error code
|
||||||
err: lda #TGI_ERR_INV_ARG
|
err: lda #TGI_ERR_INV_ARG
|
||||||
: sta ERROR
|
: sta ERROR
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word aspect ; Aspect ratio
|
.word aspect ; Aspect ratio
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Function table
|
; Function table
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
xsize: .byte 6 ; System font X size
|
xsize: .byte 6 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $011C ; Aspect ratio (based on 4/3 display)
|
.word $011C ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
; to an RTS for test versions (function not implemented).
|
; to an RTS for test versions (function not implemented).
|
||||||
|
@@ -62,6 +62,7 @@ pages: .byte 1 ; Number of screens available
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $006A ; Aspect ratio (based on 4/3 display)
|
.word $006A ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
; to an RTS for test versions (function not implemented).
|
; to an RTS for test versions (function not implemented).
|
||||||
|
@@ -63,6 +63,7 @@ pages: .byte 0 ; Number of screens available
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $0100 ; Aspect ratio (based on 4/3 display)
|
.word $0100 ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
; to an RTS for test versions (function not implemented).
|
; to an RTS for test versions (function not implemented).
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $00D4 ; Aspect ratio (based on 4/3 display)
|
.word $00D4 ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. With the exception of IRQ, all entries must be
|
; Next comes the jump table. With the exception of IRQ, all entries must be
|
||||||
; valid and may point to an RTS for test versions (function not implemented).
|
; valid and may point to an RTS for test versions (function not implemented).
|
||||||
|
@@ -49,6 +49,7 @@ pages: .byte 1 ; Number of screens available
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
aspect: .word $00D4 ; Aspect ratio (based on 4/3 display)
|
aspect: .word $00D4 ; Aspect ratio (based on 4/3 display)
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. With the exception of IRQ, all entries must be
|
; Next comes the jump table. With the exception of IRQ, all entries must be
|
||||||
; valid, and may point to an RTS for test versions (function not implemented).
|
; valid, and may point to an RTS for test versions (function not implemented).
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
.byte 8 ; System font X size
|
.byte 8 ; System font X size
|
||||||
.byte 8 ; System font Y size
|
.byte 8 ; System font Y size
|
||||||
.word $0100 ; Aspect ratio (square pixel LCD)
|
.word $0100 ; Aspect ratio (square pixel LCD)
|
||||||
|
.byte TGI_BM_FONT_FINESCALE ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
; to an RTS for test versions (function not implemented). A future version may
|
; to an RTS for test versions (function not implemented). A future version may
|
||||||
|
@@ -33,6 +33,7 @@ yres: .word 56 ; Max Y resolution
|
|||||||
.byte 2 ; System font X size
|
.byte 2 ; System font X size
|
||||||
.byte 2 ; System font Y size
|
.byte 2 ; System font Y size
|
||||||
.word $100 ; Aspect ratio
|
.word $100 ; Aspect ratio
|
||||||
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
; to an RTS for test versions (function not implemented).
|
; to an RTS for test versions (function not implemented).
|
||||||
|
@@ -55,6 +55,7 @@ _tgi_pagecount: .res 1 ; Number of available screen pages
|
|||||||
_tgi_fontwidth: .res 1 ; System font width in pixels
|
_tgi_fontwidth: .res 1 ; System font width in pixels
|
||||||
_tgi_fontheight: .res 1 ; System font height in pixels
|
_tgi_fontheight: .res 1 ; System font height in pixels
|
||||||
_tgi_aspectratio: .res 2 ; Aspect ratio in 8.8 fixed point
|
_tgi_aspectratio: .res 2 ; Aspect ratio in 8.8 fixed point
|
||||||
|
_tgi_flags: .res 1 ; TGI driver flags
|
||||||
|
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
Reference in New Issue
Block a user