DYNAMIC_DD support

git-svn-id: svn://svn.cc65.org/cc65/trunk@3334 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg
2004-12-16 22:43:47 +00:00
parent 1cb6868ddd
commit 1727d49c8d
2 changed files with 14 additions and 1 deletions

View File

@@ -20,6 +20,9 @@
.ifdef DEFAULT_DEVICE
.importzp tmp2
.ifdef DYNAMIC_DD
.import __defdev
.endif
.endif
.importzp tmp3,ptr4,sp
.import _strupr,subysp
@@ -88,7 +91,11 @@ loop2: lda (ptr4),y
lda #':'
sta (sp),y ; insert ':'
dey
lda #'0' + DEFAULT_DEVICE
.ifdef DYNAMIC_DD
lda __defdev+1
.else
lda #'0'+DEFAULT_DEVICE
.endif
sta (sp),y ; insert device number
dey
lda #'D'