mirror of
https://github.com/cc65/cc65.git
synced 2024-11-06 15:06:07 +00:00
8b26ed2a69
git-svn-id: svn://svn.cc65.org/cc65/trunk@5857 b7a2c559-68d2-44c3-8de9-860c34a00d81
30 lines
417 B
ArmAsm
30 lines
417 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
|