drogon wrote:
A 65C02 is a luxury I don't have.
What’s stopping you from getting one?
Quote:
I could save a few 10s of bytes with the C02 instructions (Mostly STZ and PHX/Y ...) and right now 10 bytes would be great!
Not only would you be saving some bytes, you’d be saving some clock cycles, although STZ executes at the same pace as STA—STZ’s value is in its convenience. Especially in interrupt handlers, I’m always looking for ways to trim clock cycles.
Some new-to-the-65C02 instructions, mainly TRB and TSB, are handy for managing bit fields and can replace the sequence of operations that would be required with the NMOS MPU to accomplish the same thing. The firmware in my POC units is peppered with those two instructions, as well as BIT #.