1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00
cc65/libsrc/cbm/filevars.s
uz a62958764d Move the _filetype variable into its own module, so people who want to change
the default can replace exactly this module without interfering with other
stuff.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5785 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-15 12:34:35 +00:00

30 lines
423 B
ArmAsm

;
; Ullrich von Bassewitz, 15.11.2002
;
; Variables used for CBM file I/O
;
.export __curunit
.constructor initcurunit, 30
.importzp devnum
.bss
__curunit:
.res 1
.segment "INIT"
.proc initcurunit
lda devnum
bne @L0
lda #8 ; Default is disk
sta devnum
@L0: sta __curunit
rts
.endproc