void gimix_state::machine_start() { UINT8* ROM = m_rom->base(); m_rombank1->configure_entries(0,4,ROM,0x800); m_rombank2->configure_entries(0,4,ROM,0x800); m_fixedrombank->configure_entries(0,4,ROM+0x700,0x800); m_rombank1->set_entry(0); // RAM banks are undefined on startup m_rombank2->set_entry(1); m_fixedrombank->set_entry(0); // install any extra RAM if(m_ram->size() > 65536) { m_bank1->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank2->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank3->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank4->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank5->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank6->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank7->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank8->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank9->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank10->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank11->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank12->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank13->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank14->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank15->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); m_bank16->space(AS_PROGRAM).install_readwrite_bank(0x10000,m_ram->size()-1,"upper_ram"); } m_floppy0->get_device()->set_rpm(300); m_floppy1->get_device()->set_rpm(300); }
void prestige_state::machine_start() { std::string region_tag; m_cart_rom = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); UINT8 *rom = memregion("maincpu")->base(); UINT8 *cart = m_cart_rom->base(); UINT8 *ram = m_ram->pointer(); memset(ram, 0x00, m_ram->size()); m_bank1->configure_entries(0, 64, rom, 0x4000); m_bank1->configure_entries(64,32, cart, 0x4000); m_bank2->configure_entries(0, 64, rom, 0x4000); m_bank2->configure_entries(64,32, cart, 0x4000); m_bank3->configure_entries(0, 64, rom, 0x4000); m_bank3->configure_entries(64,32, cart, 0x4000); m_bank4->configure_entries(0, 4, ram, 0x2000); m_bank5->configure_entries(0, 4, ram, 0x2000); m_bank1->set_entry(0); m_bank2->set_entry(0); m_bank3->set_entry(0); m_bank4->set_entry(0); m_bank5->set_entry(0); //pointer to the videoram m_vram = ram; }
void hvyunit_state::machine_start() { m_masterbank->configure_entries(0, 8, memregion("master")->base(), 0x4000); m_slavebank->configure_entries(0, 4, memregion("slave")->base(), 0x4000); m_soundbank->configure_entries(0, 4, memregion("soundcpu")->base(), 0x4000); save_item(NAME(m_mermaid_p)); }
void bigbord2_state::init_bigbord2() { m_mem = &m_maincpu->space(AS_PROGRAM); m_io = &m_maincpu->space(AS_IO); m_bankr->configure_entries(0, 2, &m_p_ram[0x0000], 0x10000); m_bankv->configure_entries(0, 2, &m_p_ram[0x6000], 0x10000); m_banka->configure_entries(0, 2, &m_p_ram[0x7000], 0x10000); }
void cultures_state::machine_start() { m_prgbank->configure_entries(0, 16, memregion("maincpu")->base(), 0x4000); m_okibank->configure_entries(0, 0x200000 / 0x20000, memregion("oki")->base(), 0x20000); m_okibank->set_entry(0); save_item(NAME(m_irq_enable)); save_item(NAME(m_bg1_bank)); save_item(NAME(m_bg2_bank)); }
INPUT_PORTS_END void pitagjr_state::machine_start() { m_rombank->configure_entries(0, 0x20, memregion("maincpu")->base(), 0x2000); m_rombank->set_entry(1); }
void stratos_state::init_stratos() { nvram_data = std::make_unique<uint8_t[]>(0x2000); nvram->set_base(nvram_data.get(), 0x2000); bank_8000 ->configure_entries(0, 4, memregion("roms_8000")->base(), 0x8000); bank_4000 ->configure_entries(0, 4, memregion("roms_4000")->base(), 0x4000); nvram_bank->configure_entries(0, 2, nvram_data.get(), 0x1000); }
INPUT_PORTS_END /************************* * Machine Start * *************************/ void sigmab52_state::machine_start() { m_bank1->configure_entries(0, 2, memregion("maincpu")->base(), 0x4000); }
INPUT_PORTS_END void pc2000_state::machine_start() { UINT8 *bios = memregion("bios")->base(); UINT8 *cart = memregion("cart")->base(); m_bank0->configure_entries(0, 0x10, bios, 0x4000); m_bank1->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0x80, 0x10, cart, 0x4000); }
void wpc_dcs_state::init() { rombank->configure_entries(0, 0x20, memregion("maincpu")->base(), 0x4000); nvram->set_base(mainram, mainram.bytes()); save_item(NAME(firq_src)); save_item(NAME(zc)); save_item(NAME(switch_col)); // rtc_base_day not saved to give the system a better chance to // survive reload some days after unscathed. }
INPUT_PORTS_END /************************* * Machine Start * *************************/ void sigmab52_state::machine_start() { UINT8 *rom = (UINT8*)*memregion("maincpu"); m_bank1->configure_entries(0, 2, rom, 0x4000); }
INPUT_PORTS_END void mephisto_pinball_state::machine_start() { m_soundbank->configure_entries(0, 16, memregion("sound1")->base(), 0x8000); m_soundbank->set_entry(0); m_ay8910_data = 0; m_ay8910_bdir = 1; m_ay8910_bc1 = 1; save_item(NAME(m_ay8910_data)); save_item(NAME(m_ay8910_bdir)); save_item(NAME(m_ay8910_bc1)); }
INPUT_PORTS_END void pc2000_state::machine_start() { std::string region_tag; UINT8 *bios = memregion("bios")->base(); memory_region *cart_region = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); UINT8 *cart = (cart_region != NULL) ? cart_region->base() : memregion("bios")->base(); m_bank0->configure_entries(0, 0x10, bios, 0x4000); m_bank1->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0x80, 0x10, cart, 0x4000); }
void prestige_state::machine_start() { std::string region_tag; m_cart_rom = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str()); uint8_t *rom = memregion("maincpu")->base(); uint8_t *cart = nullptr; if (m_cart_rom != nullptr) { cart = m_cart_rom->base(); } else { cart = rom + 0x40000; // internal ROM also includes extra contents that are activated by a cartridge that works as a jumper } uint8_t *ram = m_ram->pointer(); memset(ram, 0x00, m_ram->size()); m_bank1->configure_entries(0, 64, rom, 0x4000); m_bank1->configure_entries(64,32, cart, 0x4000); m_bank2->configure_entries(0, 64, rom, 0x4000); m_bank2->configure_entries(64,32, cart, 0x4000); m_bank3->configure_entries(0, 64, rom, 0x4000); m_bank3->configure_entries(64,32, cart, 0x4000); m_bank4->configure_entries(0, 4, ram, 0x2000); m_bank5->configure_entries(0, 4, ram, 0x2000); m_bank1->set_entry(0); m_bank2->set_entry(0); m_bank3->set_entry(0); m_bank4->set_entry(0); m_bank5->set_entry(0); //pointer to the videoram m_vram = ram; }
INPUT_PORTS_END void pc2000_state::machine_start() { astring region_tag; UINT8 *bios = memregion("bios")->base(); UINT8 *cart = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG).c_str())->base(); if (!cart) cart = memregion("bios")->base(); m_bank0->configure_entries(0, 0x10, bios, 0x4000); m_bank1->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0, 0x10, bios, 0x4000); m_bank2->configure_entries(0x80, 0x10, cart, 0x4000); }
INPUT_PORTS_END void cms_state::machine_start() { m_bank1->configure_entries(0, 16, m_rom->base(), 0x4000); memset(&m_rtc_data, 0, sizeof(m_rtc_data)); m_rtc_reg = 0; m_rtc_state = 0; m_rtc_data[0xf] = 1; m_rtc_timer = timer_alloc(); m_rtc_timer->adjust(attotime::zero, 0, attotime(1, 0)); }
void magtouch_state::machine_start() { m_rombank->configure_entries(0, 0x80, memregion("game_prg")->base(), 0x8000 ); m_rombank->set_entry(0); subdevice<nvram_device>("nvram")->set_base(memshare("nvram")->ptr(), 0x2000); }
void pcat_dyn_state::machine_start() { m_prgbank->configure_entries(0, 256, memregion("game_prg")->base(), 0x1000); m_nvram_bank->configure_entries(0, 2, &m_nvram_mem[0], 0x1000); machine().device<nvram_device>("nvram")->set_base(&m_nvram_mem[0], 0x2000); }
void sothello_state::machine_start() { m_bank1->configure_entries(0, 4, memregion("maincpu")->base() + 0x8000, 0x4000); }
void acvirus_state::machine_start() { m_rombank->configure_entries(0, 15, memregion("maincpu")->base(), 0x8000); m_rombank->set_entry(3); }
void can09_state::machine_start() { LOG("%s()\n", FUNCNAME); m_bank1->configure_entries(0, 8, m_ram->pointer(), 0x8000); }
void speglsht_state::machine_start() { m_st0016_bank->configure_entries(0, 256, memregion("maincpu")->base(), 0x4000); }