A processor emulator