From: cuz Date: Mon, 5 May 2003 17:07:14 +0000 (+0000) Subject: Another small optimization X-Git-Tag: V2.12.0~1565 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebb44b8a4f5f95663df71e69a00603d409f1cd50;p=cc65 Another small optimization git-svn-id: svn://svn.cc65.org/cc65/trunk@2150 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/strcpy.s b/libsrc/common/strcpy.s index 649424def..a48f0e35a 100644 --- a/libsrc/common/strcpy.s +++ b/libsrc/common/strcpy.s @@ -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