Comment

Comment by lholden

This isn't related to SWEET16 directly, but a workflow I enjoy for 6502 assembly is to use the zero page as a data stack. With a small set of macros and functions you can easily pass a very large number of values to a function this way. This also makes 16 bit (or 24, 32, etc) math a lot easier as well.

You can use the actual stack for this, but it gets weird with JSR, especially when dealing with nested function calls. Of course, on systems that use the Zero Page for other uses (Like the Apple II) this isn't really an option. You can use a different location in memory, but it isn't as efficient.

parent lholden 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton