]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/_heapadd.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / _heapadd.s
index fbc210645cd3850cbf43827ed8a80f927c411b2c..547e0478b0c433c42898f5b4826315651ee638c7 100644 (file)
@@ -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