]> git.sur5r.net Git - cc65/blob - asminc/_heap.inc
Fixed _textcolor definition.
[cc65] / asminc / _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    .addr
17         prev    .addr
18 .endstruct
19
20 ; Struct usedblock
21 ; See notes above
22 .struct usedblock
23         size    .word
24         start   .addr
25 .endstruct
26
27 HEAP_MIN_BLOCKSIZE  = .sizeof (freeblock)   ; Minimum size of an allocated block
28 HEAP_ADMIN_SPACE    = .sizeof (usedblock)   ; Additional space for used bock
29
30 ; Variables
31 .global         __heaporg
32 .global         __heapptr
33 .global         __heapend
34 .global         __heapfirst
35 .global         __heaplast