From ebb44b8a4f5f95663df71e69a00603d409f1cd50 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 5 May 2003 17:07:14 +0000 Subject: [PATCH] Another small optimization git-svn-id: svn://svn.cc65.org/cc65/trunk@2150 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/strcpy.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5