本文整理汇总了C++中DRIVER_INIT_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ DRIVER_INIT_CALL函数的具体用法?C++ DRIVER_INIT_CALL怎么用?C++ DRIVER_INIT_CALL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DRIVER_INIT_CALL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DRIVER_INIT_MEMBER
ROM_END
/*************************************
*
* Game-specific driver inits
*
*************************************/
#define ENERGY_CONSOLE_MODE 0
DRIVER_INIT_MEMBER(md_boot_state,aladmdb)
{
/*
* Game does a check @ 1afc00 with work RAM fff57c that makes it play like the original console version (i.e. 8 energy hits instead of 2)
*/
#if ENERGY_CONSOLE_MODE
UINT16 *rom = (UINT16 *)memregion("maincpu")->base();
rom[0x1afc08/2] = 0x6600;
#endif
// 220000 = writes to mcu? 330000 = reads?
m_maincpu->space(AS_PROGRAM).install_write_handler(0x220000, 0x220001, write16_delegate(FUNC(md_boot_state::aladmdb_w),this));
m_maincpu->space(AS_PROGRAM).install_read_handler(0x330000, 0x330001, read16_delegate(FUNC(md_boot_state::aladmdb_r),this));
DRIVER_INIT_CALL(megadrij);
}
示例2: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(gunbustr_state,gunbustrj)
{
DRIVER_INIT_CALL(gunbustr);
// no coin lockout, perhaps this was a prototype version without proper coin handling?
m_coin_lockout = false;
}
示例3: DRIVER_INIT_MEMBER
ROM_END
/*************************************
*
* Game-specific driver inits
*
*************************************/
#define ENERGY_CONSOLE_MODE 0
DRIVER_INIT_MEMBER(md_boot_state,aladmdb)
{
/*
* Game does a check @ 1afc00 with work RAM fff57c that makes it play like the original console version (i.e. 8 energy hits instead of 2)
*/
#if ENERGY_CONSOLE_MODE
UINT16 *rom = (UINT16 *)machine().root_device().memregion("maincpu")->base();
rom[0x1afc08/2] = 0x6600;
#endif
// 220000 = writes to mcu? 330000 = reads?
machine().device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_write_handler(0x220000, 0x220001, FUNC(aladmdb_w));
machine().device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0x330000, 0x330001, FUNC(aladmdb_r));
megadrive_6buttons_pad = 0;
DRIVER_INIT_CALL(megadrij);
}
示例4: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(igs_m036_state, igsm312)
{
DRIVER_INIT_CALL(igs_m036);
igs036_decryptor decrypter(m312cn_key);
decrypter.decrypter_rom(memregion("user1"));
}
示例5: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(sg1000a_state,chwrestl)
{
static const UINT8 convtable[32][4] =
{
/* opcode data address */
/* A B C D A B C D */
{ 0x28,0x08,0xa8,0x88 }, { 0x88,0x80,0x08,0x00 }, /* ...0...0...0...0 */
{ 0x28,0x08,0xa8,0x88 }, { 0x28,0xa8,0x08,0x88 }, /* ...0...0...0...1 */
{ 0x88,0x80,0x08,0x00 }, { 0x88,0x08,0x80,0x00 }, /* ...0...0...1...0 */
{ 0x88,0x08,0x80,0x00 }, { 0x28,0xa8,0x08,0x88 }, /* ...0...0...1...1 */
{ 0x28,0x08,0xa8,0x88 }, { 0x88,0x80,0x08,0x00 }, /* ...0...1...0...0 */
{ 0x88,0x80,0x08,0x00 }, { 0x88,0x80,0x08,0x00 }, /* ...0...1...0...1 */
{ 0x88,0x08,0x80,0x00 }, { 0x88,0x08,0x80,0x00 }, /* ...0...1...1...0 */
{ 0xa0,0x80,0xa8,0x88 }, { 0xa0,0x80,0xa8,0x88 }, /* ...0...1...1...1 */
{ 0x80,0xa0,0x00,0x20 }, { 0x28,0x08,0xa8,0x88 }, /* ...1...0...0...0 */
{ 0x28,0xa8,0x08,0x88 }, { 0x28,0x08,0xa8,0x88 }, /* ...1...0...0...1 */
{ 0x80,0xa0,0x00,0x20 }, { 0x80,0xa0,0x00,0x20 }, /* ...1...0...1...0 */
{ 0x28,0xa8,0x08,0x88 }, { 0x80,0xa0,0x00,0x20 }, /* ...1...0...1...1 */
{ 0xa0,0x80,0xa8,0x88 }, { 0x28,0x08,0xa8,0x88 }, /* ...1...1...0...0 */
{ 0x80,0xa0,0x00,0x20 }, { 0xa0,0x80,0xa8,0x88 }, /* ...1...1...0...1 */
{ 0xa0,0x80,0xa8,0x88 }, { 0x80,0xa0,0x00,0x20 }, /* ...1...1...1...0 */
{ 0xa0,0x80,0xa8,0x88 }, { 0xa0,0x80,0xa8,0x88 } /* ...1...1...1...1 */
};
DRIVER_INIT_CALL(sg1000a);
sega_decode(memregion("maincpu")->base(), m_decrypted_opcodes, 0x8000, convtable);
}
示例6: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(midtunit_state,mkturbo)
{
/* protection */
m_maincpu->space(AS_PROGRAM).install_read_handler(0xfffff400, 0xfffff40f, read16_delegate(FUNC(midtunit_state::mkturbo_prot_r),this));
DRIVER_INIT_CALL(mktunit);
}
示例7: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(pgm_arm_type3_state, theglada)
{
DRIVER_INIT_CALL(theglad);
pgm_patch_external_arm_rom_jumptable_theglada(0x82078);
}
示例8: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(igs_m036_state, cjddzsp)
{
DRIVER_INIT_CALL(igs_m036);
igs036_decryptor decrypter(cjddzsp_key);
decrypter.decrypter_rom(memregion("user1"));
}
示例9: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(playch10_state,pc_hrz)
{
/* common init */
DRIVER_INIT_CALL(playch10);
/* setup mirroring */
m_mirroring = PPU_MIRROR_HORZ;
}
示例10: DRIVER_INIT
TOURVISION_BIOS
ROM_END
static DRIVER_INIT(tourvision)
{
DRIVER_INIT_CALL(pce);
}
示例11: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER( nascom2_state, nascom2 )
{
DRIVER_INIT_CALL(nascom);
// setup nasbus
m_nasbus->set_program_space(&m_maincpu->space(AS_PROGRAM));
m_nasbus->set_io_space(&m_maincpu->space(AS_IO));
}
示例12: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER(galaxold_state,mooncrst)
{
offs_t i, len = memregion("maincpu")->bytes();
UINT8 *rom = memregion("maincpu")->base();
for (i = 0;i < len;i++)
rom[i] = decode_mooncrst(rom[i],i);
DRIVER_INIT_CALL(mooncrsu);
}
示例13: DRIVER_INIT
MACHINE_DRIVER_END
static DRIVER_INIT(kinstb)
{
INT32 i;
for(i=0;i<0x400000;i++)
{
memory_region(REGION_USER3)[i]=BITSWAP8(memory_region(REGION_USER3)[i],5,0,6,1,7,4,3,2 );
}
DRIVER_INIT_CALL(snes_hirom);
}
示例14: DRIVER_INIT_MEMBER
DRIVER_INIT_MEMBER( vtech1_state, vtech1h )
{
DRIVER_INIT_CALL(vtech1);
// the SHRG mod replaces the standard videoram chip with an 8k chip
m_videoram.allocate(0x2000);
m_maincpu->space(AS_PROGRAM).install_readwrite_bank(0x7000, 0x77ff, "bank4");
membank("bank4")->configure_entries(0, 4, m_videoram, 0x800);
membank("bank4")->set_entry(0);
}
示例15: DRIVER_INIT
ROM_END
static DRIVER_INIT( jchan )
{
DRIVER_INIT_CALL( decrypt_toybox_rom );
// install these here, putting them in the memory map causes issues
memory_install_write16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x403ffe, 0x403fff, 0, 0, main2sub_cmd_w );
memory_install_write16_handler(cputag_get_address_space(machine, "sub", ADDRESS_SPACE_PROGRAM), 0x400000, 0x400001, 0, 0, sub2main_cmd_w );
memset(jchan_mcu_com, 0, 4 * sizeof( UINT16 ) );
}