diff --git a/libsrc/common/_heapadd.s b/libsrc/common/_heapadd.s index fbc210645..547e0478b 100644 --- a/libsrc/common/_heapadd.s +++ b/libsrc/common/_heapadd.s @@ -40,7 +40,7 @@ __heapadd: ; The block is large enough. Set the size field in the block. -@L1: ldy #freeblock::size +@L1: ldy #usedblock::size sta (ptr2),y iny txa