You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SashaCrofter edited this page Jul 24, 2012
·
2 revisions
tusk.newProcess
Registers a new process of unique ID. Adds the process id to the table at v.tusk.PIDloc.
modifies A
returns a pointer to the first memory for the process's use
under development
+----------------+
| Process Memory |
| ... |
| Heap Allocs | <- begins at word 64
+----------------+
### tusk.getMem (length)
Reserves a *length* amount of memory from the heap using *heap.alloc*, and stores *length* and the location of the reserved memory on the "memory stack," which allows that memory to be freed either when the process calls *tusk.free* or when it terminates.
**modifies** A <br />
**returns** the first location of the reserved memory
### tusk.dropMem ()
**does not modify registers**