这篇教程C++ DRIVER_INIT_CALL函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中DRIVER_INIT_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ DRIVER_INIT_CALL函数的具体用法?C++ DRIVER_INIT_CALL怎么用?C++ DRIVER_INIT_CALL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了DRIVER_INIT_CALL函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: DRIVER_INIT_MEMBERROM_END/************************************* * * Game-specific driver inits * *************************************/#define ENERGY_CONSOLE_MODE 0DRIVER_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);}
开发者ID:crazii,项目名称:mameplus,代码行数:27,
示例2: DRIVER_INIT_MEMBERDRIVER_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;}
开发者ID:Robbbert,项目名称:store1,代码行数:7,
示例3: DRIVER_INIT_MEMBERROM_END/************************************* * * Game-specific driver inits * *************************************/#define ENERGY_CONSOLE_MODE 0DRIVER_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);}
开发者ID:broftkd,项目名称:mess-svn,代码行数:27,
示例4: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(igs_m036_state, igsm312){ DRIVER_INIT_CALL(igs_m036); igs036_decryptor decrypter(m312cn_key); decrypter.decrypter_rom(memregion("user1"));}
开发者ID:qwijibo,项目名称:mame,代码行数:7,
示例5: DRIVER_INIT_MEMBERDRIVER_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);}
开发者ID:mbcoguno,项目名称:mame,代码行数:27,
示例6: DRIVER_INIT_MEMBERDRIVER_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);}
开发者ID:dinkc64,项目名称:mame,代码行数:7,
示例7: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(pgm_arm_type3_state, theglada){ DRIVER_INIT_CALL(theglad); pgm_patch_external_arm_rom_jumptable_theglada(0x82078);}
开发者ID:Robbbert,项目名称:store1,代码行数:7,
示例8: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(igs_m036_state, cjddzsp){ DRIVER_INIT_CALL(igs_m036); igs036_decryptor decrypter(cjddzsp_key); decrypter.decrypter_rom(memregion("user1"));}
开发者ID:DragonMinded,项目名称:mame,代码行数:7,
示例9: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(playch10_state,pc_hrz){ /* common init */ DRIVER_INIT_CALL(playch10); /* setup mirroring */ m_mirroring = PPU_MIRROR_HORZ;}
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:8,
示例10: DRIVER_INIT TOURVISION_BIOSROM_ENDstatic DRIVER_INIT(tourvision){ DRIVER_INIT_CALL(pce);}
开发者ID:gustavosmk,项目名称:groovyarcade.groovymame,代码行数:8,
示例11: DRIVER_INIT_MEMBERDRIVER_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));}
开发者ID:bmunger,项目名称:mame,代码行数:8,
示例12: DRIVER_INIT_MEMBERDRIVER_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);}
开发者ID:antervud,项目名称:MAMEHub,代码行数:11,
示例13: DRIVER_INITMACHINE_DRIVER_ENDstatic 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);}
开发者ID:cdenix,项目名称:ps3-mame-0125,代码行数:11,
示例14: DRIVER_INIT_MEMBERDRIVER_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);}
开发者ID:qwijibo,项目名称:mame,代码行数:11,
示例15: DRIVER_INITROM_ENDstatic 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 ) );}
开发者ID:DarrenBranford,项目名称:MAME4iOS,代码行数:12,
示例16: DRIVER_INITstatic DRIVER_INIT( ssf2ghw ){ memory_install_write16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xA130F0, 0xA130FF, 0, 0, SMH_NOP); // custom banking is disabled (!) memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x400000, 0x5fffff, 0, 0, SMH_BANK5, SMH_UNMAP); memory_set_bankptr( 5, memory_region( REGION_CPU1 )+0x400000 ); memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x770070, 0x770075, 0, 0, ssf2ghw_dsw_r ); DRIVER_INIT_CALL(megadrij);}
开发者ID:cdenix,项目名称:ps3-mame-0125,代码行数:12,
示例17: DRIVER_INITstatic DRIVER_INIT( botss ){ UINT16 *rom = (UINT16 *)memory_region(machine, "maincpu"); rom[0x1fcc0] = 0x4e71; /* Eliminate startup Am29000 timeout */ rom[0x1fbf0] = 0x4e71; /* Skip AM29k code version detect */ rom[0x1fC88] = 0x4e71; rom[0x23146] = 0x4e71; rom[0x17f4f] = 0x6006; /* Skip download objects */ rom[0x17f5b] = 0x4e71; DRIVER_INIT_CALL(micro3d);}
开发者ID:Paulodx,项目名称:sdl-mame-wii,代码行数:13,
示例18: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(vtech1_state,vtech1h){ address_space &prg = machine().device("maincpu")->memory().space(AS_PROGRAM); DRIVER_INIT_CALL(vtech1); /* the SHRG mod replaces the standard videoram chip with an 8k chip */ m_videoram.allocate(0x2000); prg.install_readwrite_bank(0x7000, 0x77ff, "bank4"); membank("bank4")->configure_entries(0, 4, m_videoram, 0x800); membank("bank4")->set_entry(0);}
开发者ID:coinhelper,项目名称:jsmess,代码行数:13,
示例19: DRIVER_INIT_MEMBERDRIVER_INIT_MEMBER(maygay1b_state,m1){ DRIVER_INIT_CALL(m1common); //AM_RANGE(0x2420, 0x2421) AM_WRITE(latch_ch2_w ) // oki // if there is no OKI region disable writes here, the rom might be missing, so alert user UINT8 *okirom = memregion( "msm6376" )->base(); if (!okirom) { m_maincpu->space(AS_PROGRAM).install_write_handler(0x2420, 0x2421, write8_delegate(FUNC(maygay1b_state::m1ab_no_oki_w), this)); }}
开发者ID:gregdickhudl,项目名称:mame,代码行数:13,
注:本文中的DRIVER_INIT_CALL函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ DRM_ARRAY_SIZE函数代码示例 C++ DRIVER_DATA函数代码示例 |