basic arena allocator implementation

This commit is contained in:
2025-09-05 16:42:25 -04:00
parent 9a478aa4d4
commit cd316afdd1
2 changed files with 18 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ arena_alloc:
.func:
; remove bytes from pool and increment mark to the new cursor location
; return a pointer to the begining of allocated segment
ERROR STEVIA_DEBUG_UNIMPLEMENTED
.endp:
__CDECL16_EXIT
ret
@@ -76,6 +77,7 @@ arena_mark:
__CDECL16_ENTRY
.func:
; return the current location of the 'cursor' in the allocator
ERROR STEVIA_DEBUG_UNIMPLEMENTED
.endp:
__CDECL16_EXIT
ret
@@ -84,6 +86,7 @@ arena_reset_to:
__CDECL16_ENTRY
.func:
; rewind the arena to a previously marked point
ERROR STEVIA_DEBUG_UNIMPLEMENTED
.endp:
__CDECL16_EXIT
ret
@@ -92,6 +95,7 @@ arena_reset:
__CDECL16_ENTRY
.func:
; reset the entire heap to a fresh state
ERROR STEVIA_DEBUG_UNIMPLEMENTED
.endp:
__CDECL16_EXIT
ret