Emulator using published pseudocode.