mirror of https://github.com/AR1972/DOS3.3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
946 B
27 lines
946 B
; SCCSID = @(#)arena.asm 1.1 85/04/09
|
|
BREAK <Memory arena structure>
|
|
|
|
;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;
|
|
; C A V E A T P R O G R A M M E R ;
|
|
; ;
|
|
;
|
|
; arena item
|
|
;
|
|
arena STRUC
|
|
arena_signature DB ? ; 4D for valid item, 5A for last item
|
|
arena_owner DW ? ; owner of arena item
|
|
arena_size DW ? ; size in paragraphs of item
|
|
arena ENDS
|
|
|
|
;
|
|
; CAUTION: The routines in ALLOC.ASM rely on the fact that arena_signature
|
|
; and arena_owner_system are all equal to zero and are contained in DI. Change
|
|
; them and change ALLOC.ASM.
|
|
|
|
arena_owner_system EQU 0 ; free block indication
|
|
|
|
arena_signature_normal EQU 4Dh ; valid signature, not end of arena
|
|
arena_signature_end EQU 5Ah ; valid signature, last block in arena
|
|
; ;
|
|
; C A V E A T P R O G R A M M E R ;
|
|
;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;
|