# Load (Kernel)

`Load`(resourceType resourceNumber)

  Loads a resource into memory. If the resource type is rsMEMORY, is will allocate resourceNumber bytes of memory. It returns a pointer to the resource loaded or memory allocated.

  Parameters: | resourceType (number) – rsVIEW, rsPIC, etc... resourceNumber (number) – The resource number, or the number of bytes to allocate in the case of rsMEMORY.
  Returns: | A pointer to the memory in the case of rsMEMORY.

  See also: `Unload()`.

  Example:

      (= hView (Load rsVIEW 100))             ; loads VIEW.100
      (= memPtr (Load rsMEMORY 1024)) ; allocates 1024 bytes of memory
      (UnLoad rsVIEW 100)                             ; unloads VIEW.000 from memory
      (UnLoad rsMEMORY memPtr)                ; frees memPtr from