home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / basic / eventshell / Docs / Memory < prev    next >
Encoding:
Text File  |  1996-04-11  |  2.3 KB  |  89 lines

  1. PROCshell_HeapBlockReturn()
  2. =>    int    address of heap block
  3.  
  4. Releases the given heap block, returning memory to
  5. the free pool.
  6.  
  7. --------------------------------------------------------
  8.  
  9. PROCshell_HeapBlockInit()
  10. =>    None
  11.  
  12. --------------------------------------------------------
  13.  
  14. FNshell_HeapBlockExtend()
  15. =>    int    address of heap block
  16.     int    amount to increase or decrease block size by
  17.          (-ve to decrease)
  18.  
  19. <=    int    address of heap block
  20.  
  21. Increases or decreases the size of the given heap block
  22. which must have been allocated with FNshell_HeapBlockFetch.
  23. Note that the heap block may be moved to make it fit so you
  24. should always use the returned value for the heap block
  25. address after this call.
  26.  
  27. --------------------------------------------------------
  28.  
  29. FNshell_HeapBlockFetch()
  30. =>    int    size of block to fetch from heap
  31.  
  32. <=    int    address of heapblock allocated
  33.  
  34. Returns address of heapblock or causes an "Out
  35. of memory" error if the block cannot be
  36. allocated.
  37.  
  38. --------------------------------------------------------
  39.  
  40. FNshell_HeapBlockInfo()
  41. =>    int    address of heap block
  42.  
  43. <=    int    size of heap block (Note that this
  44.          is larger than the size requested
  45.          with FNshell_HeapBlockFetch)
  46.  
  47. --------------------------------------------------------
  48.  
  49. PROCshell_HeapManagerInit
  50. =>    str    path to directory containing the
  51.          'heapcode' file
  52.     int    address of heap manager workspace
  53.  
  54. This routine must be called before PROCshell_Init.
  55.  
  56. --------------------------------------------------------
  57.  
  58. FNshell_HeapBlockExists()
  59. =>    int    address to check
  60.  
  61. <=    bool    TRUE or FALSE
  62.  
  63. This routine returns TRUE if a heapblock is present
  64. at the specified address, FALSE otherwise.
  65.  
  66. --------------------------------------------------------
  67.  
  68. PROCshell_MemFill()
  69. =>    int    start address
  70.     int    number of bytes
  71.     int    byte value to fill with
  72.  
  73. --------------------------------------------------------
  74.  
  75. FNshell_HeapBlockExtendMid()
  76. =>    int    address of heap block
  77.     int    amount to increase or decrease block size by
  78.          (-ve to decrease)
  79.     int    offset at which to extend block
  80.  
  81. <=    int    address of heap block
  82.  
  83. Increases or decreases the size of the given heap block
  84. which must have been allocated with <FNshell_HeapBlockFetch>.
  85. Note that the heap block may be moved to make it fit so you
  86. should always use the returned value for the heap block
  87. address after this call.
  88.  
  89. --------------------------------------------------------