How to Build a Virtual Machine [video]
thenewcircle.com
thenewcircle.com
The author progressively derive a VM from a naive interpreter (after many steps)
One day in class, my assignment source was corrupted and I had to reassemble it from compiled byte code files. He made an impromptu lecture about it for the class to learn about. He didnt shame me but wanted everyone to be enriched from best practices.
Next I'll probably fork it to remove all the debugging-specific opcodes and recompile with the official assembler.