]> git.sur5r.net Git - cc65/commitdiff
Fixed an invalid store offset, which caused an invalid pointer as a function
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 25 Mar 2012 13:14:13 +0000 (13:14 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 25 Mar 2012 13:14:13 +0000 (13:14 +0000)
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
libsrc/common/strupper.s

index b76133ce76da6de2e148ad11b177efc3283d1060..28214b9905a9f63165e6954cee0527931ad482a8 100644 (file)
@@ -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
index 70b593fab61201936c16f518aa9c004522e36b93..e33b286755eb9a91c61076b7cab9c46a77e82d4f 100644 (file)
@@ -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