1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-21 15:32:41 +00:00

tgi driver for C128 VDC, changed order of things in libsrc/tgi/tgi-kernel.s

git-svn-id: svn://svn.cc65.org/cc65/trunk@1826 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst 2002-12-22 22:50:17 +00:00
parent 96b68d8f4f
commit 8397a1d8aa
6 changed files with 1293 additions and 6 deletions

View File

@ -36,6 +36,7 @@
; Graphics modes. Zero may not be used as a mode number.
TGI_MODE_320_200_2 = 1 ; 320x200, 2 colors (b/w)
TGI_MODE_160_200_4 = 2 ; 160x200, 4 colors
TGI_MODE_640_200_2 = 3 ; 640x200, 2 colors (b/w)

View File

@ -47,6 +47,7 @@
/* Graphics modes. Zero may not be used as a mode number. */
#define TGI_MODE_320_200_2 1U /* 320x200, 2 colors (b/w) */
#define TGI_MODE_160_200_4 2U /* 160x200, 4 colors */
#define TGI_MODE_640_200_2 3U /* 640x200, 2 colors (b/w) */

View File

@ -51,7 +51,7 @@ EMDS = c128-georam.emd c128-ram.emd c128-reu.emd c128-vdc.emd
JOYS = c128-stdjoy.joy
TGIS =
TGIS = c128-640-200-2.tgi
#--------------------------------------------------------------------------
# Targets

1277
libsrc/c128/c128-640-200-2.s Normal file

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,5 @@
.rodata
_tgi_mode_table:
.byte TGI_MODE_320_200_2, "c128-320-200-2.tgi", 0
.byte TGI_MODE_640_200_2, "c128-vdc.tgi", 0
.byte 0 ; End marker

View File

@ -99,10 +99,20 @@ _tgi_setup:
lda #>tgi_emu_bar
sta tgi_bar+2
@L2: lda ptr1
pha
lda ptr1+1
pha
jsr tgi_install ; Call driver install routine
pla ; (may update variables)
sta ptr1+1 ; (may modify ptr1 so it is preserved)
pla
sta ptr1
; Copy variables. Beware: We are using internal knowledge about variable
; layout here!
@L2: ldy #TGI_HDR_XRES
ldy #TGI_HDR_XRES
ldx #0
@L3: lda (ptr1),y
sta tgi_driver_vars,x
@ -119,7 +129,7 @@ _tgi_setup:
dex
bpl @L4
jmp tgi_install ; Call driver install routine
rts
;----------------------------------------------------------------------------
; Load the pointer to the tgi driver into ptr1.