mirror of
https://github.com/cc65/cc65.git
synced 2026-04-25 22:18:27 +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:
+12
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user