]> git.sur5r.net Git - cc65/blobdiff - asminc/_heap.inc
Now tgi_clear() works
[cc65] / asminc / _heap.inc
index d3b274f9a0f7d529464dbdde0b192aca51bd14cb..a7d6acea2346ae144402b71a3a58a0088752090c 100644 (file)
@@ -1,7 +1,7 @@
 ;
 ; _heap.inc
 ;
-; (C) Copyright 2003 Ullrich von Bassewitz (uz@cc65.org)
+; (c) Copyright 2003, Ullrich von Bassewitz (uz@cc65.org)
 ;
 
 ; Assembler include file that makes the constants and structures in _heap.h
 ; probably not work.
 .struct freeblock
         size    .word
-        next    .word
-        prev    .word
+        next    .addr
+        prev    .addr
+.endstruct
+
+; Struct usedblock
+; See notes above
+.struct usedblock
+        size    .word
+        start   .addr
 .endstruct
 
-HEAP_ADMIN_SPACE    = 2
 HEAP_MIN_BLOCKSIZE  = .sizeof (freeblock)   ; Minimum size of an allocated block
+HEAP_ADMIN_SPACE    = .sizeof (usedblock)   ; Additional space for used bock
 
 ; Variables
 .global         __heaporg