]> git.sur5r.net Git - cc65/commitdiff
writefndiskcmd gets its arguments in ptr1 and Y.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 15:40:06 +0000 (15:40 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 22 Feb 2009 15:40:06 +0000 (15:40 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3945 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/sysrename.s

index 4b299d250e7fb588e5a28eacb4db5df942a0c4d0..574023d7dbdb217d0d63774a5349f31ea23cc69e 100644 (file)
@@ -11,6 +11,7 @@
         .import         popax
 
         .import         fncmd, fnunit
+        .importzp       ptr1
 
 
 ;--------------------------------------------------------------------------
@@ -25,6 +26,9 @@
         jsr     fnadd
 
         jsr     popax
+        sta     ptr1
+        stx     ptr1+1
+        ldy     #0
         jsr     fnparsename     ; Parse second filename
         bne     done