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:
7
libsrc/plus4/devnum.s
Normal file
7
libsrc/plus4/devnum.s
Normal file
@@ -0,0 +1,7 @@
|
||||
;
|
||||
; Oliver Schmidt, 2010-02-14
|
||||
;
|
||||
|
||||
.include "plus4.inc"
|
||||
|
||||
.exportzp devnum := DEVNUM
|
||||
Reference in New Issue
Block a user