CurtisP wrote:
It's why the TSX and TXS instructions exist.
Actually, there are lots of cool things you can do with them, as covered in the stacks treatise; stack frames, local variables, using data inlined in the program, and more.
pifu wrote:
BTW: I think I'll study your
6502 STACK Treatise...
I do wish that part of my site were ore popular. I guess the people who need it the most don't realize/appreciate the potential of stacks. (And BTW, it's stack
s, plural, not just the page-1 hardware stack, but also virtual stacks.) The most popular section of the site is the
6502 primer, followed by the section on
scaled-integer math and large look-up tables. Last month, visitors requested more than a thousand page downloads per day on average (36,000 for the month).