home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / PAL / MALLOC / MEMORY.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-08  |  711 b   |  26 lines

  1. ;****************************************************************************
  2. ; Filename: MEMORY.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1994.12.25
  6. ;  Updated: -
  7. ;****************************************************************************
  8. ; Copyright Peter Andersson, 1994-1995.
  9. ; All rights reserved.
  10. ;****************************************************************************
  11.  
  12.     Include    STDDEF.INC
  13.     Include    "MEMORY.INC"
  14.  
  15.     Dataseg
  16.  
  17. Label    BlockTable FreeBlock
  18. BitSize = 0
  19.     Rept    MEMBLOCK
  20.     FreeBlock {PrevFree=Offset BlockTable+BitSize*Size FreeBlock,NextFree=Offset BlockTable+BitSize*Size FreeBlock}
  21. BitSize = BitSize + 1
  22.     Endm
  23. Label    BlockTableEnd FreeBlock
  24.  
  25.     End
  26.