]> git.sur5r.net Git - cc65/blob - asminc/_heap.inc
Working on new serial API
[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 HEAP_ADMIN_SPACE        =       2
11 HEAP_MIN_BLOCKSIZE      =       6       ; Minimum size of an allocated block
12
13 ; Struct freeblock offsets and size. NOTE: For performance reasons, the asm
14 ; code often uses increment/decrement operators to access other offsets, so
15 ; just changing offsets here will probably not work.
16 freeblock_size  = 0
17 freeblock_next  = 2
18 freeblock_prev  = 4
19
20 ; Variables
21 .global         __heaporg
22 .global         __heapptr
23 .global         __heapend
24 .global         __heapfirst
25 .global         __heaplast