mirror of
https://github.com/cc65/cc65.git
synced 2025-01-09 11:30:29 +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:
parent
9ef9396b71
commit
b256d6fb46
@ -11,7 +11,6 @@
|
||||
|
||||
ExecReg = $00
|
||||
IndReg = $01
|
||||
DEVNUM = $9F
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Screen size
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
ExecReg = $00
|
||||
IndReg = $01
|
||||
DEVNUM = $9F
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Screen size
|
||||
|
@ -64,6 +64,7 @@
|
||||
|
||||
.proc transfer_table
|
||||
|
||||
.byte $9F, DEVNUM
|
||||
.byte $CA, CURS_Y
|
||||
.byte $CB, CURS_X
|
||||
.byte $EC, CHARCOLOR
|
||||
|
@ -2,6 +2,6 @@
|
||||
; Oliver Schmidt, 2010-02-14
|
||||
;
|
||||
|
||||
.include "cbm510.inc"
|
||||
.include "extzp.inc"
|
||||
|
||||
.exportzp devnum := DEVNUM
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
.globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, CURS_FLAG
|
||||
.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 norkey, graphmode, lastidx, rptdelay, rptcount
|
||||
|
||||
|
@ -43,6 +43,7 @@ CURS_BLINK: .byte 0
|
||||
CURS_COLOR: .byte 0
|
||||
CHARCOLOR: .byte 0
|
||||
RVS: .byte 0
|
||||
DEVNUM: .byte 0
|
||||
SCREEN_PTR: .word 0
|
||||
CRAM_PTR: .word 0
|
||||
; Stuff for our own kbd polling routine
|
||||
|
@ -63,6 +63,7 @@
|
||||
|
||||
.proc transfer_table
|
||||
|
||||
.byte $9F, DEVNUM
|
||||
.byte $CA, CURS_Y
|
||||
.byte $CB, CURS_X
|
||||
.byte $CC, graphmode
|
||||
|
@ -2,6 +2,6 @@
|
||||
; Oliver Schmidt, 2010-02-14
|
||||
;
|
||||
|
||||
.include "cbm610.inc"
|
||||
.include "extzp.inc"
|
||||
|
||||
.exportzp devnum := DEVNUM
|
||||
|
@ -9,8 +9,8 @@
|
||||
.globalzp sysp1, sysp3, crtc, sid, ipccia, cia, acia, tpi1, tpi2
|
||||
.globalzp ktab1, ktab2, ktab3, ktab4
|
||||
|
||||
.globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, RVS, config
|
||||
.globalzp CharPtr, keyidx, keybuf, keyscanbuf, keysave
|
||||
.globalzp sysp0, time, segsave, ktmp, CURS_X, CURS_Y, RVS, DEVNUM
|
||||
.globalzp config, CharPtr, keyidx, keybuf, keyscanbuf, keysave
|
||||
.globalzp modkey, norkey, graphmode, lastidx, rptdelay, rptcount
|
||||
|
||||
|
||||
|
@ -37,6 +37,7 @@ ktmp: .byte 0
|
||||
CURS_X: .byte 0
|
||||
CURS_Y: .byte 0
|
||||
RVS: .byte 0
|
||||
DEVNUM: .byte 0
|
||||
config: .byte 0
|
||||
CharPtr: .word 0
|
||||
; Stuff for our own kbd polling routine
|
||||
|
Loading…
Reference in New Issue
Block a user