I'm working on a project on self-modifying code(SMC), and I'd like to get as many stories of fun things you've done using SMC, papers, articles, videos. Anything but examples of SMC used for obfuscation - stack hacking, ad-hoc quoting, literal injection, branchless conditions, etc.. I want to see it all :maru:
@neauoire My first exposure to self modifying code was the CHRGET routine which is part of C64 BASIC, but located in zero-page RAM since the 16bit next character pointer (TXTPTR) is the operand of an LDA instruction in the middle of this routine.
https://www.c64-wiki.com/wiki/115-138