Notes on malloc functions
This commit is contained in:
parent
385bf15414
commit
9443996f56
@ -42,11 +42,13 @@ malloc_get_table:
|
|||||||
mov di, 0x0600
|
mov di, 0x0600
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
; IN: 0:BX ptr to paragraph to be marked as allocated
|
||||||
malloc_mark_allocated:
|
malloc_mark_allocated:
|
||||||
call malloc_calc_offsets
|
call malloc_calc_offsets
|
||||||
or byte [bx+di], al
|
or byte [bx+di], al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
; IN: 0:BX ptr to paragraph to be marked as free
|
||||||
malloc_mark_free:
|
malloc_mark_free:
|
||||||
call malloc_calc_offsets
|
call malloc_calc_offsets
|
||||||
not al
|
not al
|
||||||
|
Loading…
Reference in New Issue
Block a user