From 9ee0fa91e6c4757c757fe92c92d05c5465b27be8 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 25 Mar 2012 13:14:13 +0000 Subject: [PATCH] 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 --- libsrc/common/strlower.s | 2 +- libsrc/common/strupper.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5