]> git.sur5r.net Git - cc65/commitdiff
Code optimization contributed by Kajtar Zsolt, soci@c64.rulez.org
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 Jan 2012 20:03:33 +0000 (20:03 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 1 Jan 2012 20:03:33 +0000 (20:03 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5356 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/filename.s

index b458b8efb6a9c783837bb6b70584f212cc5d2a31..284ea736d95bdc72a928cab607a46a99c7fe6f16 100644 (file)
@@ -144,13 +144,13 @@ drivedone:
 
 fncomplete:
        pha                     ; Save mode
-        jsr     fnaddcomma      ; Add a comma
         lda     __filetype
-        jsr     fnadd           ; Add the type
+        jsr     fnaddmode       ; Add the type
         pla
 fnaddmode:
         pha
-        jsr     fnaddcomma
+        lda     #','
+        jsr     fnadd
         pla
 
 fnadd:  ldx     fnlen
@@ -158,10 +158,6 @@ fnadd:  ldx     fnlen
         sta     fnbuf,x
         rts
 
-fnaddcomma:
-        lda     #','
-        bne     fnadd
-
 ;--------------------------------------------------------------------------
 ; Data