mirror of
https://github.com/cc65/cc65.git
synced 2024-08-18 10:29:06 +00:00
37 lines
548 B
ArmAsm
37 lines
548 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 15.11.2002
|
|
;
|
|
; Variables used for CBM file I/O
|
|
;
|
|
|
|
.export __filetype
|
|
.export __curunit
|
|
.constructor initcurunit, 30
|
|
.importzp devnum
|
|
|
|
|
|
.data
|
|
|
|
__filetype:
|
|
.byte 's' ; Create sequential files by default
|
|
|
|
|
|
.bss
|
|
|
|
__curunit:
|
|
.res 1
|
|
|
|
|
|
.segment "INIT"
|
|
|
|
.proc initcurunit
|
|
|
|
lda devnum
|
|
bne @L0
|
|
lda #8 ; Default is disk
|
|
sta devnum
|
|
@L0: sta __curunit
|
|
rts
|
|
|
|
.endproc
|