Skip to content

Commit 83e223b

Browse files
committed
add required alloc init procedure
1 parent c021c4b commit 83e223b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mem/malloc.dasm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
:mem_start dat 0x6000 ; adjust these to your liking.
1010
:mem_end dat 0x7fff
1111

12+
:alloc_init
13+
set a, [mem_start]
14+
set b, [mem_end]
15+
jsr set_initial_blocks
16+
set pc, pop
17+
1218
; void* malloc(int owner, int words)
1319
:malloc
1420
set push, i

0 commit comments

Comments
 (0)