Changed the way, used blocks are managed
git-svn-id: svn://svn.cc65.org/cc65/trunk@3340 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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 bocks
|
||||
|
||||
; Variables
|
||||
.global __heaporg
|
||||
|
||||
Reference in New Issue
Block a user