I love reading intricate software hacking articles like this. I think this is something Brian Casey would enjoy. 🙂
Originally shared by Greg Kroah-Hartman
Another on in the theme of “great low-level software hacks”.
This sentence is the best:
The sax instruction is a mix of sta and stx; it tries to write the contents of both A and X to memory, and due to the NMOS process used to manufacture the 6502, zeroes are stronger than ones, so bus contentions resolve into bitwise-and operations.
Relying on the processor manufacturing method to create custom op codes and then exploit them in very useful ways is amazing stuff.