Emulator basics: a stack and register machine
notes.eatonphil.com