當前位置: 首頁>>代碼示例>>C++>>正文


C++ DRIVER_INIT_CALL函數代碼示例

本文整理匯總了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);
}
開發者ID:crazii,項目名稱:mameplus,代碼行數:27,代碼來源:megadrvb.c

示例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;
}
開發者ID:Robbbert,項目名稱:store1,代碼行數:7,代碼來源:gunbustr.cpp

示例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);
}
開發者ID:broftkd,項目名稱:mess-svn,代碼行數:27,代碼來源:megadrvb.c

示例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"));
}
開發者ID:qwijibo,項目名稱:mame,代碼行數:7,代碼來源:igs_m036.cpp

示例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);
}
開發者ID:mbcoguno,項目名稱:mame,代碼行數:27,代碼來源:sg1000a.c

示例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);
}
開發者ID:dinkc64,項目名稱:mame,代碼行數:7,代碼來源:midtunit.c

示例7: DRIVER_INIT_MEMBER

DRIVER_INIT_MEMBER(pgm_arm_type3_state, theglada)
{
    DRIVER_INIT_CALL(theglad);

    pgm_patch_external_arm_rom_jumptable_theglada(0x82078);

}
開發者ID:Robbbert,項目名稱:store1,代碼行數:7,代碼來源:pgmprot_igs027a_type3.cpp

示例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"));
}
開發者ID:DragonMinded,項目名稱:mame,代碼行數:7,代碼來源:igs_m036.cpp

示例9: DRIVER_INIT_MEMBER

DRIVER_INIT_MEMBER(playch10_state,pc_hrz)
{
	/* common init */
	DRIVER_INIT_CALL(playch10);

	/* setup mirroring */
	m_mirroring = PPU_MIRROR_HORZ;
}
開發者ID:CJBass,項目名稱:mame2013-libretro,代碼行數:8,代碼來源:playch10.c

示例10: DRIVER_INIT

	TOURVISION_BIOS
ROM_END


static DRIVER_INIT(tourvision)
{
	DRIVER_INIT_CALL(pce);
}
開發者ID:gustavosmk,項目名稱:groovyarcade.groovymame,代碼行數:8,代碼來源:tourvis.c

示例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));
}
開發者ID:bmunger,項目名稱:mame,代碼行數:8,代碼來源:nascom1.cpp

示例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);
}
開發者ID:antervud,項目名稱:MAMEHub,代碼行數:11,代碼來源:galaxold.c

示例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);
}
開發者ID:cdenix,項目名稱:ps3-mame-0125,代碼行數:11,代碼來源:kinstb.c

示例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);
}
開發者ID:qwijibo,項目名稱:mame,代碼行數:11,代碼來源:vtech1.cpp

示例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 ) );
}
開發者ID:DarrenBranford,項目名稱:MAME4iOS,代碼行數:12,代碼來源:jchan.c


注:本文中的DRIVER_INIT_CALL函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。