diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-05-17 12:17:34 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-05-17 12:17:34 +0300 |
| commit | d433a9f0cdddd27b0aaae88aca8e8f909fc14a13 (patch) | |
| tree | 92abd92228eca9d948c2b0acc88a4603f59c1c5e /atk16_asm/builtin_asm/std_bump_alloc.atk16 | |
| parent | 853918f4b7e9f3724be4d71014689c18c28fe61e (diff) | |
Add call macro, *_p subroutine naming convention
Diffstat (limited to 'atk16_asm/builtin_asm/std_bump_alloc.atk16')
| -rw-r--r-- | atk16_asm/builtin_asm/std_bump_alloc.atk16 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/atk16_asm/builtin_asm/std_bump_alloc.atk16 b/atk16_asm/builtin_asm/std_bump_alloc.atk16 index 32516bc..28eefbc 100644 --- a/atk16_asm/builtin_asm/std_bump_alloc.atk16 +++ b/atk16_asm/builtin_asm/std_bump_alloc.atk16 @@ -24,6 +24,7 @@ @data bump_next_p heap_segment @data bump_arena_start ${heap_segment - 1} +@data bump_reset_p bump_reset @label bump_reset ; reset the heap to its initial state (zero allocated blocks) ; can be used to initialize the bump allocator @@ -42,6 +43,7 @@ stack_restore RA RB return +@data bump_alloc_p bump_alloc @label bump_alloc ; allocate a block of memory from the heap, checking for overlap with the stack ; parameters: RA = n of words to allocate |
