X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=asminc%2F_heap.inc;h=a7d6acea2346ae144402b71a3a58a0088752090c;hb=1dabfda73460764b81b85fa7772c19bf64ca5321;hp=d3b274f9a0f7d529464dbdde0b192aca51bd14cb;hpb=c15fd58d3bbbbfede3614ecbac5f9cfb6444fa75;p=cc65 diff --git a/asminc/_heap.inc b/asminc/_heap.inc index d3b274f9a..a7d6acea2 100644 --- a/asminc/_heap.inc +++ b/asminc/_heap.inc @@ -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 @@ -13,12 +13,19 @@ ; 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