Cycle accurate emulator for Nintendo systems