home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / eventshell / Docs / Memory < prev    next >
Encoding:
Text File  |  1993-05-01  |  2.1 KB  |  85 lines

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