Re:MOV is Turing-complete (2013) [pdf]
by nneonneo on Tuesday February 18, 2020 @04:20PM
(#22360517)
Yeah, I remember this. It requires setting up a custom signal handler though. IIRC something similar is used to get system/library calls (which also can’t be expressed purely with mov instructions, normally).
If I recall correctly tom7 had a cute trick to get looping behavior in his ASCII-only compiler for 16-bit Intel (http://tom7.org/abc/) which was to make the program 64KB exactly, such that the program counter just loops around at the end. I suppose that’s another option to get _pure_ mov-only code.
[0] https://github.com/xoreaxeaxeax/movfuscator