1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00
cc65/libsrc/cbm/filevars.s

30 lines
428 B
ArmAsm
Raw Permalink Normal View History

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