Software emulator for CPUs and other things