DOS 3.30 source code leak
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

5 years ago
  1. ; SCCSID = @(#)arena.asm 1.1 85/04/09
  2. BREAK <Memory arena structure>
  3. ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;
  4. ; C A V E A T P R O G R A M M E R ;
  5. ; ;
  6. ;
  7. ; arena item
  8. ;
  9. arena STRUC
  10. arena_signature DB ? ; 4D for valid item, 5A for last item
  11. arena_owner DW ? ; owner of arena item
  12. arena_size DW ? ; size in paragraphs of item
  13. arena ENDS
  14. ;
  15. ; CAUTION: The routines in ALLOC.ASM rely on the fact that arena_signature
  16. ; and arena_owner_system are all equal to zero and are contained in DI. Change
  17. ; them and change ALLOC.ASM.
  18. arena_owner_system EQU 0 ; free block indication
  19. arena_signature_normal EQU 4Dh ; valid signature, not end of arena
  20. arena_signature_end EQU 5Ah ; valid signature, last block in arena
  21. ; ;
  22. ; C A V E A T P R O G R A M M E R ;
  23. ;----+----+----+----+----+----+----+----+----+----+----+----+----+----+----;