3 ms·
It's really 3 instructions, SUBLEQ, INPUT, and OUTPUT, where you encode the latter two with bogus values for operands of the first. My idea of a truly simple v
by tromp 6y ago
It's really 3 instructions, SUBLEQ, INPUT, and OUTPUT,
where you encode the latter two with bogus values for operands of the first.
My idea of a truly simple virtual machine is
https://www.ioccc.org/2012/tromp/hint.html https://www.ioccc.org/2012/tromp/hint.html
- howerj 6y agoYour more minimal VM is larger than a minimal SUBLEQ VM! :) I think that is a fair characterization of most SUBLEQ implementations however that did annoy me slightly. You can make ones that use proper memory mapped I/O so they end up being truly single instruction, but they end up being larger.