Added heap support functions
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 5 Nov 2001 04:26:36 +0000 (04:26 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 5 Nov 2001 04:26:36 +0000 (04:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1505 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/gbz80/heap.s [new file with mode: 0644]
device/lib/z80/heap.s [new file with mode: 0644]

diff --git a/device/lib/gbz80/heap.s b/device/lib/gbz80/heap.s
new file mode 100644 (file)
index 0000000..ec3b412
--- /dev/null
@@ -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 (file)
index 0000000..ec3b412
--- /dev/null
@@ -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