]> git.sur5r.net Git - cc65/commitdiff
use DEFAULT_DEVICE definition for the default drive
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 16 Dec 2004 22:19:46 +0000 (22:19 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 16 Dec 2004 22:19:46 +0000 (22:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3330 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/ucase_fn.s

index c52de8ef7577bf838ad7df07b468cf4af2e1c78f..2d609bb5c7a2110cce1c8dff7f201217baebf884 100644 (file)
@@ -82,12 +82,15 @@ loop2:      lda     (ptr4),y
 
        inc     tmp3            ; no, prepend "D:"
        inc     tmp3            ; adjust stack size used
-       ldy     #2
+       ldy     #3
        jsr     subysp          ; adjust stack pointer
-       ldy     #1
+       ldy     #2
        lda     #':'
        sta     (sp),y          ; insert ':'
        dey
+       lda     #'0' + DEFAULT_DEVICE 
+       sta     (sp),y          ; insert device number
+       dey
        lda     #'D'
        sta     (sp),y          ; insert 'D'
 hasdev2: