Initialize _curunit from the zeropage value DEVNUM (aka First Address) in a constructor with a very high priority to be called before DEVNUM gets overwritten by other constructors.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4588 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
9
asminc/c16.inc
Normal file
9
asminc/c16.inc
Normal file
@@ -0,0 +1,9 @@
|
||||
;
|
||||
; C16 generic definitions.
|
||||
;
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Zero page, Commodore stuff
|
||||
|
||||
DEVNUM := $AE ; Device number
|
||||
@@ -9,8 +9,9 @@
|
||||
;-----------------------------------------------------------------------------
|
||||
; Zeropage stuff
|
||||
|
||||
ExecReg = $0000
|
||||
IndReg = $0001
|
||||
ExecReg = $00
|
||||
IndReg = $01
|
||||
DEVNUM = $9F
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Screen size
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Zeropage registers
|
||||
; Zeropage stuff
|
||||
|
||||
ExecReg = $00
|
||||
IndReg = $01
|
||||
DEVNUM = $9F
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Screen size
|
||||
|
||||
9
asminc/pet.inc
Normal file
9
asminc/pet.inc
Normal file
@@ -0,0 +1,9 @@
|
||||
;
|
||||
; PET generic definitions.
|
||||
;
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Zero page, Commodore stuff
|
||||
|
||||
DEVNUM := $D4 ; Device number
|
||||
Reference in New Issue
Block a user