Add cc65 artifacts to repo for now
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 38s
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 38s
This commit is contained in:
35
cc65/asminc/_heap.inc
Normal file
35
cc65/asminc/_heap.inc
Normal file
@@ -0,0 +1,35 @@
|
||||
;
|
||||
; _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.
|
||||
|
||||
; Struct freeblock
|
||||
; 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.
|
||||
.struct freeblock
|
||||
size .word
|
||||
next .addr
|
||||
prev .addr
|
||||
.endstruct
|
||||
|
||||
; Struct usedblock
|
||||
; See notes above
|
||||
.struct usedblock
|
||||
size .word
|
||||
start .addr
|
||||
.endstruct
|
||||
|
||||
HEAP_MIN_BLOCKSIZE = .sizeof (freeblock) ; Minimum size of an allocated block
|
||||
HEAP_ADMIN_SPACE = .sizeof (usedblock) ; Additional space for used bock
|
||||
|
||||
; Variables
|
||||
.global ___heaporg
|
||||
.global ___heapptr
|
||||
.global ___heapend
|
||||
.global ___heapfirst
|
||||
.global ___heaplast
|
||||
Reference in New Issue
Block a user