Cycle accurate PS1 emulator written in C++