Implemented __syschdir on CBM. As getcwd returns a cached directory any direct access to __curunit would cause inconsistencies. Therefore __curunit was renamed to curunit to prohibit user access.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5857 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
; Variables used for CBM file I/O
|
||||
;
|
||||
|
||||
.export __curunit
|
||||
.export curunit
|
||||
.constructor initcurunit, 30
|
||||
.importzp devnum
|
||||
|
||||
|
||||
.bss
|
||||
|
||||
__curunit:
|
||||
curunit:
|
||||
.res 1
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ __curunit:
|
||||
bne @L0
|
||||
lda #8 ; Default is disk
|
||||
sta devnum
|
||||
@L0: sta __curunit
|
||||
@L0: sta curunit
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
Reference in New Issue
Block a user