Exec Module
The Exec module provides memory management and linked list utility functions that extend the capabilities of the Amiga’s exec.library. These functions simplify common tasks such as reversing memory blocks, reallocating memory, and dynamically managing Exec-style linked lists with nodes.
Memory Functions
- RevertMem — Reverses the contents of a memory area, operating on bytes, words, or longwords.
- ReAllocVec — Reallocates a memory block previously allocated via
exec/AllocVec(), allowing resizing and attribute changes.
Linked List Functions
- AllocNewList — Allocates and initializes a new
Liststructure, ready for use. - AllocNode — Allocates and initializes a
Nodestructure, optionally inserting it into a list by priority. - FreeNode — Removes a node from a list and frees the memory it occupies.
- FreeList — Frees an entire list including all its nodes.
- FreeNodeName — Removes a node and frees both the node and the memory pointed to by
LN_NAME. - FreeListName — Frees an entire list, including the
LN_NAMEmemory for each node.
Last updated on