Notes on malloc functions
This commit is contained in:
parent
385bf15414
commit
9443996f56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user