ROM_END DRIVER_INIT( cbasebal ) { memory_configure_bank(1, 0, 32, memory_region(REGION_CPU1) + 0x10000, 0x4000); pang_decode(); }
ROM_END /************************************* * * Driver initialization * *************************************/ static DRIVER_INIT( cbasebal ) { pang_decode(machine); }
ROM_END /************************************* * * Driver initialization * *************************************/ DRIVER_INIT_MEMBER(cbasebal_state,cbasebal) { pang_decode(machine()); }
ROM_END /************************************* * * Driver initialization * *************************************/ DRIVER_INIT_MEMBER(cbasebal_state,cbasebal) { UINT8 *src = memregion("maincpu")->base(); int size = memregion("maincpu")->bytes(); UINT8 *dst = auto_alloc_array(machine(), UINT8, size); pang_decode(src, dst, size); membank("bank1")->configure_entries(0, 32, src + 0x10000, 0x4000); membank("bank0d")->set_base(dst); membank("bank1d")->configure_entries(0, 32, dst + 0x10000, 0x4000); }
ROM_END /************************************* * * Driver initialization * *************************************/ DRIVER_INIT_MEMBER(cbasebal_state,cbasebal) { UINT8 *src = memregion("maincpu")->base(); int size = memregion("maincpu")->bytes(); m_decoded = std::make_unique<UINT8[]>(size); pang_decode(src, m_decoded.get(), size); membank("bank1")->configure_entries(0, 32, src + 0x10000, 0x4000); membank("bank0d")->set_base(m_decoded.get()); membank("bank1d")->configure_entries(0, 32, m_decoded.get() + 0x10000, 0x4000); }