]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/_heapmaxavail.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / _heapmaxavail.s
index 5446c3f2828b6480f766351bc718d8fa597e2755..a606904ef36987fb4488a260f73b2bf35b73122d 100644 (file)
@@ -6,7 +6,7 @@
 ; size_t __fastcall__ _heapmaxavail (void);
 ;
 ;
-
+                            
        .importzp       ptr1, ptr2
                .export         __heapmaxavail
 
@@ -42,7 +42,7 @@ __heapmaxavail:
 
 ; if (Size < F->size) {
 
-        ldy     #freeblock_size
+        ldy     #freeblock::size
         lda     ptr2
         sub     (ptr1),y
         iny
@@ -52,7 +52,7 @@ __heapmaxavail:
 
 ; Size = F->size;
 
-        ldy     #freeblock_size
+        ldy     #freeblock::size
         lda     (ptr1),y
         sta     ptr2
         iny