From: uz Date: Sun, 25 Mar 2012 13:14:13 +0000 (+0000) Subject: Fixed an invalid store offset, which caused an invalid pointer as a function X-Git-Tag: V2.14~440 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ee0fa91e6c4757c757fe92c92d05c5465b27be8;p=cc65 Fixed an invalid store offset, which caused an invalid pointer as a function result. The actual conversion was ok. git-svn-id: svn://svn.cc65.org/cc65/trunk@5625 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/strlower.s b/libsrc/common/strlower.s index b76133ce7..28214b990 100644 --- a/libsrc/common/strlower.s +++ b/libsrc/common/strlower.s @@ -19,7 +19,7 @@ _strlwr: sta ptr1 ; Save s (working copy) stx ptr1+1 sta ptr2 - sta ptr2+2 ; save function result + sta ptr2+1 ; save function result ldy #0 loop: lda (ptr1),y ; get character diff --git a/libsrc/common/strupper.s b/libsrc/common/strupper.s index 70b593fab..e33b28675 100644 --- a/libsrc/common/strupper.s +++ b/libsrc/common/strupper.s @@ -19,7 +19,7 @@ _strupr: sta ptr1 ; Save s (working copy) stx ptr1+1 sta ptr2 - sta ptr2+2 ; save function result + sta ptr2+1 ; save function result ldy #0 loop: lda (ptr1),y ; get character