.ifdef DEFAULT_DEVICE
.importzp tmp2
-.ifdef DYNAMIC_DD
.import __defdev
-.endif
.endif
.importzp tmp3,ptr4,sp
.import _strupr,subysp
cmp #1 ; was device present in passed string?
beq hasdev2 ; yes, don't prepend something
- inc tmp3 ; no, prepend "D:"
+ inc tmp3 ; no, prepend "D:" (or other device)
inc tmp3 ; adjust stack size used
inc tmp3
ldy #3
lda #':'
sta (sp),y ; insert ':'
dey
-.ifdef DYNAMIC_DD
lda __defdev+1
-.else
- lda #'0'+DEFAULT_DEVICE
-.endif
sta (sp),y ; insert device number
dey
- lda #'D'
- sta (sp),y ; insert 'D'
+ lda __defdev
+ sta (sp),y ; insert device name (normally 'D' or 'H')
hasdev2:
.endif
; uppercase the temp. filename