]> git.sur5r.net Git - cc65/commitdiff
Fixed an invalid store offset which resulted in random values returned by the
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 25 Mar 2012 13:13:37 +0000 (13:13 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 25 Mar 2012 13:13:37 +0000 (13:13 +0000)
function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5624 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/_heapblocksize.s

index 2be32fef4301c85d6e7f2875339725d7ca73bd3f..b7458479c6e98083c4a988b0f362590b55132c8f 100644 (file)
@@ -32,7 +32,7 @@ __heapblocksize:
         sta     ptr2            ; Place the raw block pointer into ptr2
         iny
         lda     (ptr1),y
-        sta     ptr2+2
+        sta     ptr2+1
 
 ; Load the size from the raw block