]> git.sur5r.net Git - cc65/commitdiff
Another small optimization
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 May 2003 17:07:14 +0000 (17:07 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 May 2003 17:07:14 +0000 (17:07 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2150 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/strcpy.s

index 649424def0d67939915cf66cb6135c288f01e054..a48f0e35a52b4c9213cee9bea1dbe9f4f34aeb4f 100644 (file)
@@ -6,7 +6,7 @@
 
        .export         _strcpy
        .import         popax
-       .importzp       ptr1, ptr2, tmp3
+       .importzp       ptr1, ptr2
 
 _strcpy:
        sta     ptr1            ; Save src
@@ -14,7 +14,6 @@ _strcpy:
        jsr     popax           ; Get dest
        sta     ptr2
        stx     ptr2+1
-               sta     tmp3            ; remember for function return
        ldy     #$00
 
 L1:    lda     (ptr1),y
@@ -26,6 +25,6 @@ L1:   lda     (ptr1),y
        inc     ptr2+1
        bne     L1
 
-L9:    lda     tmp3            ; X still contains high byte
+L9:            lda     ptr2            ; X still contains high byte
        rts