C++ emulator