void sms_init(void) { #if PSX z80_set_context((void *)0x1F800000); #endif cpu_reset(); sms_reset(); }
void system_reset(void) { sms_reset(); pio_reset(); vdp_reset(); render_reset(); sound_reset(); system_manage_sram(cart.sram, SLOT_CART, SRAM_LOAD); }
void system_reset(void) { SoftResetCount = 0; Cart_Reset(); sms_reset(); pio_reset(); vdp_reset(); render_reset(); SMS_SoundReset(); }
void system_reset(void) { cpu_reset(); vdp_reset(); sms_reset(); render_reset(); system_load_sram(); if(snd.enabled) { OPLL_reset(opll) ; OPLL_reset_patch(opll,0) ; /* if use default voice data. */ } }
void sms_init(void) { ZetInit(0); ZetOpen(0); /* Default: open bus */ data_bus_pullup = 0x00; data_bus_pulldown = 0x00; // bprintf(0, _T("Cart mapper: ")); /* Assign mapper */ if(cart.mapper == MAPPER_CODIES) { // bprintf(0, _T("codemasters\n")); ZetSetWriteHandler(writemem_mapper_codies); } else if (cart.mapper == MAPPER_MSX || cart.mapper == MAPPER_MSX_NEMESIS) { // bprintf(0, _T("msx\n")); ZetSetWriteHandler(writemem_mapper_msx); } else { // bprintf(0, _T("sega\n")); ZetSetWriteHandler(writemem_mapper_sega); } /* Force SMS (J) console type if FM sound enabled */ if(sms.use_fm) { sms.console = CONSOLE_SMSJ; sms.territory = TERRITORY_DOMESTIC; sms.display = DISPLAY_NTSC; } /* Initialize selected console emulation */ switch(sms.console) { case CONSOLE_SMS: ZetSetOutHandler(sms_port_w); ZetSetInHandler(sms_port_r); break; case CONSOLE_SMSJ: ZetSetOutHandler(smsj_port_w); ZetSetInHandler(smsj_port_r); break; case CONSOLE_SMS2: ZetSetOutHandler(sms_port_w); ZetSetInHandler(sms_port_r); data_bus_pullup = 0xFF; break; case CONSOLE_GG: ZetSetOutHandler(gg_port_w); ZetSetInHandler(gg_port_r); data_bus_pullup = 0xFF; break; case CONSOLE_GGMS: ZetSetOutHandler(ggms_port_w); ZetSetInHandler(ggms_port_r); data_bus_pullup = 0xFF; break; case CONSOLE_GEN: case CONSOLE_MD: ZetSetOutHandler(md_port_w); ZetSetInHandler(md_port_r); break; case CONSOLE_GENPBC: case CONSOLE_MDPBC: ZetSetOutHandler(md_port_w); ZetSetInHandler(md_port_r); data_bus_pullup = 0xFF; break; } ZetClose(); sms_reset(); }