Will eventually be a livecoding demo for the C64
Storing assembly instructions in a list felt nice since that lets me just fire and forget, but if we want to properly optimize short branches (i.e. branches that do not require a full JMP) we'll need to be able to rewrite assembly after linking, and I feel that's best done by making assembly instructions hold a NEXT rather than poking at a list clumsily. The first linking pass was also moved out to a separate function since we may want to run the first pass twice, first after the initial assembling and second after expanding optimistic short branches (those that turned out to be longer branches than 127/128 bytes) into a long branch snippet (branch with inverted condition skipping over a JMP). |
||
---|---|---|
wip-dicander | ||
wip-duuqnd | ||
wip-hugo | ||
.gitignore | ||
README.md |
C64 Livecoding demo
WIP