void SNES_SPC::reset_time_regs() { cpu_error = 0; echo_accessed = 0; spc_time = 0; dsp_time = 0; for ( int i = 0; i < timer_count; i++ ) { Timer* t = &timers [i]; t->next_time = 1; t->divider = 0; } enable_rom( REGS [r_control] & 0x80 ); timers_loaded(); extra_clocks = 0; reset_buf(); }
// Registers were just loaded. Applies these new values. void SNES_SPC::regs_loaded() { enable_rom( REGS [r_control] & 0x80 ); timers_loaded(); }
// Registers were just loaded. Applies these new values. void Snes_Spc::regs_loaded() { enable_rom( REGS [r_control] & 0x80 ); timers_loaded(); }
void snapshot64_config_setup(BYTE *rawcart) { DBG(("SNAPSHOT64: config setup\n")); memcpy(&roml_banks[0x0000], &rawcart[0x0000], 0x1000); enable_rom(0, CMODE_READ); }
void snapshot64_config_init(void) { DBG(("SNAPSHOT64: config_init\n")); enable_rom(0, CMODE_READ); }
void snapshot64_freeze(void) { DBG(("SNAPSHOT64: freeze\n")); enable_rom(1, CMODE_READ | CMODE_RELEASE_FREEZE); }
void snapshot64_io2_store(WORD addr, BYTE value) { /* DBG(("io2 wr %04x %02x\n", addr, value)); */ enable_rom(0, CMODE_WRITE); }