Virtual CPU emulator inspired by Intel 4001