]> git.sur5r.net Git - cc65/blob - _heap.inc
d3b274f9a0f7d529464dbdde0b192aca51bd14cb
[cc65] / _heap.inc
1 ;
2 ; _heap.inc
3 ;
4 ; (C) Copyright 2003 Ullrich von Bassewitz (uz@cc65.org)
5 ;
6
7 ; Assembler include file that makes the constants and structures in _heap.h
8 ; available for asm code.
9
10 ; Struct freeblock
11 ; NOTE: For performance reasons, the asm code often uses increment/decrement
12 ; operators to access other offsets, so just changing offsets here will
13 ; probably not work.
14 .struct freeblock
15         size    .word
16         next    .word
17         prev    .word
18 .endstruct
19
20 HEAP_ADMIN_SPACE    = 2
21 HEAP_MIN_BLOCKSIZE  = .sizeof (freeblock)   ; Minimum size of an allocated block
22
23 ; Variables
24 .global         __heaporg
25 .global         __heapptr
26 .global         __heapend
27 .global         __heapfirst
28 .global         __heaplast