]> 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 f2f9b6826c6a9dd2481c6a98f5925f7f5cb21a27..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