Doubly-linked list utility in 65C02 assembly
Posted: Wed Jun 14, 2023 11:25 pm
After going on for quite some length in the C linked-list thread, I became interested in just how easily a human could potentially implement a faster linked list than what CC65 can be coaxed into generating. Because cc65 seems to ultimately want to perform 16-bit arithmetic at the slightest provocation, meaning a human can do much better for linked lists involving less than 256 elements.
The result is a linked list library/utility I've written for use in ca65 projects, and can be used to instance, implement, and use my linked list approach: https://github.com/indigodarkwolf/x16-linkedlist-asm
The joy of macros, making life easier for everyone except the macro author.
I have some basic documentation in linkedlist.inc in the github repo, but will follow up on this thread later with additional documentation.
The result is a linked list library/utility I've written for use in ca65 projects, and can be used to instance, implement, and use my linked list approach: https://github.com/indigodarkwolf/x16-linkedlist-asm
The joy of macros, making life easier for everyone except the macro author.
I have some basic documentation in linkedlist.inc in the github repo, but will follow up on this thread later with additional documentation.