Logic and software CPU emulators