mirror of
https://github.com/cc65/cc65.git
synced 2024-08-26 04:29:20 +00:00
26 lines
702 B
PHP
26 lines
702 B
PHP
|
;
|
||
|
; _heap.inc
|
||
|
;
|
||
|
; (C) Copyright 2003 Ullrich von Bassewitz (uz@cc65.org)
|
||
|
;
|
||
|
|
||
|
; Assembler include file that makes the constants and structures in _heap.h
|
||
|
; available for asm code.
|
||
|
|
||
|
HEAP_ADMIN_SPACE = 2
|
||
|
HEAP_MIN_BLOCKSIZE = 6 ; Minimum size of an allocated block
|
||
|
|
||
|
; Struct freeblock offsets and size. NOTE: For performance reasons, the asm
|
||
|
; code often uses increment/decrement operators to access other offsets, so
|
||
|
; just changing offsets here will probably not work.
|
||
|
freeblock_size = 0
|
||
|
freeblock_next = 2
|
||
|
freeblock_prev = 4
|
||
|
|
||
|
; Variables
|
||
|
.global __heaporg
|
||
|
.global __heapptr
|
||
|
.global __heapend
|
||
|
.global __heapfirst
|
||
|
.global __heaplast
|