From f990f58fc49fae4c5a24d18f1206cc37bdbf1ccc Mon Sep 17 00:00:00 2001 From: michaelh Date: Mon, 5 Nov 2001 04:26:36 +0000 Subject: [PATCH] Added heap support functions git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1505 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/lib/gbz80/heap.s | 14 ++++++++++++++ device/lib/z80/heap.s | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 device/lib/gbz80/heap.s create mode 100644 device/lib/z80/heap.s diff --git a/device/lib/gbz80/heap.s b/device/lib/gbz80/heap.s new file mode 100644 index 00000000..ec3b4128 --- /dev/null +++ b/device/lib/gbz80/heap.s @@ -0,0 +1,14 @@ + ;; Stubs that hook the heap in + .globl __sdcc_heap_init + + .area _GSINIT + call __sdcc_heap_init + + .area _HEAP +__sdcc_heap_start:: + ;; For now just allocate 1k of heap. + .ds 1023 + + .area _HEAP_END +__sdcc_heap_end:: + .ds 1 diff --git a/device/lib/z80/heap.s b/device/lib/z80/heap.s new file mode 100644 index 00000000..ec3b4128 --- /dev/null +++ b/device/lib/z80/heap.s @@ -0,0 +1,14 @@ + ;; Stubs that hook the heap in + .globl __sdcc_heap_init + + .area _GSINIT + call __sdcc_heap_init + + .area _HEAP +__sdcc_heap_start:: + ;; For now just allocate 1k of heap. + .ds 1023 + + .area _HEAP_END +__sdcc_heap_end:: + .ds 1 -- 2.47.2