-
Notifications
You must be signed in to change notification settings - Fork 1
tasker.dasm16
SashaCrofter edited this page Jul 24, 2012
·
2 revisions
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**