| |
| | [No title] |
 | | Linked Lists in ASM by mammon_ Assembly language is notorious for being low-level; to wit, it lacks many of the features in higher-level languages which make programming easier. |
 | | The linked list implementation has been designed to be extendable; the routine names are prefaced with underscores to avoid filling up the namespace of the linked list application, and the routines themselves are generic enough to be called from higher-level Stack, Queue, and List implementations. |
 | | The Linked List interface is as follows: ptrHead _create_list(hHeap, NodeSize) void _delete_list(hHeap, ptrHead) ptrNode _add_node(hHeap, ptrPrev, NodeSize) void _delete_node(hHeap, ptrPrev, ptrNode) void _set_node_data(ptrNode, NodeOffset, data) DWORD data _get_node_data(ptrNode, NodeOffset) The names of the routines should make their intent apparent; note however that NodeSize is assumed to be the size of a LISTSTRUCT structure. |
| www.eccentrix.com /members/mammon/Text/llist_apj.txt (892 words) |
|