1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 03:30:05 +00:00

Made Olivers devnum patch (r4588) work with the PET-II models. On these

machines, the program runs in a separate 64K bank, and zeropage variables need
to be copied from the system bank into the execution bank to read by a simple
load operation. The change is currently untested!


git-svn-id: svn://svn.cc65.org/cc65/trunk@4597 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-02-20 19:46:51 +00:00
parent 9ef9396b71
commit b256d6fb46
10 changed files with 9 additions and 7 deletions

View File

@ -11,7 +11,6 @@
ExecReg = $00 ExecReg = $00
IndReg = $01 IndReg = $01
DEVNUM = $9F
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
; Screen size ; Screen size

View File

@ -11,7 +11,6 @@
ExecReg = $00 ExecReg = $00
IndReg = $01 IndReg = $01
DEVNUM = $9F
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
; Screen size ; Screen size

View File

@ -64,6 +64,7 @@
.proc transfer_table .proc transfer_table
.byte $9F, DEVNUM
.byte $CA, CURS_Y .byte $CA, CURS_Y
.byte $CB, CURS_X .byte $CB, CURS_X
.byte $EC, CHARCOLOR .byte $EC, CHARCOLOR

View File

@ -2,6 +2,6 @@
; Oliver Schmidt, 2010-02-14 ; Oliver Schmidt, 2010-02-14
; ;
.include "cbm510.inc" .include "extzp.inc"
.exportzp devnum := DEVNUM .exportzp devnum := DEVNUM

View File

@ -11,7 +11,7 @@
.globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, CURS_FLAG .globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, CURS_FLAG
.globalzp CURS_STATE, CURS_BLINK, CURS_COLOR, CHARCOLOR, RVS .globalzp CURS_STATE, CURS_BLINK, CURS_COLOR, CHARCOLOR, RVS
.globalzp SCREEN_PTR, CRAM_PTR .globalzp DEVNUM, SCREEN_PTR, CRAM_PTR
.globalzp keyidx, keybuf, keyscanbuf, keysave, modkey .globalzp keyidx, keybuf, keyscanbuf, keysave, modkey
.globalzp norkey, graphmode, lastidx, rptdelay, rptcount .globalzp norkey, graphmode, lastidx, rptdelay, rptcount

View File

@ -43,6 +43,7 @@ CURS_BLINK: .byte 0
CURS_COLOR: .byte 0 CURS_COLOR: .byte 0
CHARCOLOR: .byte 0 CHARCOLOR: .byte 0
RVS: .byte 0 RVS: .byte 0
DEVNUM: .byte 0
SCREEN_PTR: .word 0 SCREEN_PTR: .word 0
CRAM_PTR: .word 0 CRAM_PTR: .word 0
; Stuff for our own kbd polling routine ; Stuff for our own kbd polling routine

View File

@ -63,6 +63,7 @@
.proc transfer_table .proc transfer_table
.byte $9F, DEVNUM
.byte $CA, CURS_Y .byte $CA, CURS_Y
.byte $CB, CURS_X .byte $CB, CURS_X
.byte $CC, graphmode .byte $CC, graphmode

View File

@ -2,6 +2,6 @@
; Oliver Schmidt, 2010-02-14 ; Oliver Schmidt, 2010-02-14
; ;
.include "cbm610.inc" .include "extzp.inc"
.exportzp devnum := DEVNUM .exportzp devnum := DEVNUM

View File

@ -9,8 +9,8 @@
.globalzp sysp1, sysp3, crtc, sid, ipccia, cia, acia, tpi1, tpi2 .globalzp sysp1, sysp3, crtc, sid, ipccia, cia, acia, tpi1, tpi2
.globalzp ktab1, ktab2, ktab3, ktab4 .globalzp ktab1, ktab2, ktab3, ktab4
.globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, RVS, config .globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, RVS, DEVNUM
.globalzp CharPtr, keyidx, keybuf, keyscanbuf, keysave .globalzp config, CharPtr, keyidx, keybuf, keyscanbuf, keysave
.globalzp modkey, norkey, graphmode, lastidx, rptdelay, rptcount .globalzp modkey, norkey, graphmode, lastidx, rptdelay, rptcount

View File

@ -37,6 +37,7 @@ ktmp: .byte 0
CURS_X: .byte 0 CURS_X: .byte 0
CURS_Y: .byte 0 CURS_Y: .byte 0
RVS: .byte 0 RVS: .byte 0
DEVNUM: .byte 0
config: .byte 0 config: .byte 0
CharPtr: .word 0 CharPtr: .word 0
; Stuff for our own kbd polling routine ; Stuff for our own kbd polling routine