int Mips3Init() { g_mips = new mips::mips3(); g_mmap = new Mips3MemoryMap(); #ifdef MIPS3_X64_DRC g_mips_x64 = new mips::mips3_x64(g_mips); #endif ResetMemoryMap(); }
int Adsp2100Init() { pMemMap = new Adsp2100MemoryMap; ResetMemoryMap(); pADSP = (adsp2100_state*) BurnMalloc(sizeof(adsp2100_state)); adsp2105_init(pADSP, nullptr); pADSP->sport_rx_callback = RxCallback; pADSP->sport_tx_callback = TxCallback; pADSP->timer_fired = TimerCallback; pTimerCallback = NULL; pTxCallback = NULL; pRxCallback = NULL; #if ENABLE_TRACE pTrace = fopen("adsp21xx.txt", "w"); #endif return 0; }