Notes on malloc functions

This commit is contained in:
Nero 2019-08-30 17:43:46 +00:00
parent 385bf15414
commit 9443996f56

View File

@ -42,11 +42,13 @@ malloc_get_table:
mov di, 0x0600
ret
; IN: 0:BX ptr to paragraph to be marked as allocated
malloc_mark_allocated:
call malloc_calc_offsets
or byte [bx+di], al
ret
; IN: 0:BX ptr to paragraph to be marked as free
malloc_mark_free:
call malloc_calc_offsets
not al