• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ set_a2bus_device函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中set_a2bus_device函数的典型用法代码示例。如果您正苦于以下问题:C++ set_a2bus_device函数的具体用法?C++ set_a2bus_device怎么用?C++ set_a2bus_device使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了set_a2bus_device函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: set_a2bus_device

void a2bus_timemasterho_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(TIMEMASTER_ROM_REGION).c_str())->base();
}
开发者ID:DanielAeolusLaude,项目名称:mame,代码行数:7,代码来源:timemasterho.c


示例2: set_a2bus_device

void a2bus_mouse_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(MOUSE_ROM_REGION).c_str())->base();

	// allocate two timers: one for the 68705, one for the quadrature magic
	m_timer = timer_alloc(TIMER_68705, nullptr);
	m_read_timer = timer_alloc(TIMER_QUADRATURE, nullptr);
	m_timer->adjust(attotime::never, TIMER_68705);
	m_read_timer->adjust(attotime::never, TIMER_QUADRATURE);

	// get 68705P3 mask option byte
	m_mask_option = m_rom[0x784];

	// register save state variables
	save_item(NAME(m_ddr_a));
	save_item(NAME(m_ddr_b));
	save_item(NAME(m_ddr_c));
	save_item(NAME(m_port_a_out));
	save_item(NAME(m_port_b_out));
	save_item(NAME(m_port_c_out));
	save_item(NAME(m_port_a_in));
	save_item(NAME(m_port_b_in));
	save_item(NAME(m_port_c_in));
	save_item(NAME(m_timer_cnt));
	save_item(NAME(m_timer_ctl));
	save_item(NAME(last_mx));
	save_item(NAME(last_my));
	save_item(NAME(count_x));
	save_item(NAME(count_y));
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:33,代码来源:mouse.cpp


示例3: set_a2bus_device

void a2bus_ssc_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(SSC_ROM_REGION).c_str())->base();
}
开发者ID:robsonfr,项目名称:mame,代码行数:7,代码来源:a2ssc.cpp


示例4: set_a2bus_device

void a2bus_softcard_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	save_item(NAME(m_bEnabled));
	save_item(NAME(m_FirstZ80Boot));
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:8,代码来源:a2softcard.c


示例5: set_a2bus_device

void a2bus_floppy_device::device_start()
{
    // set_a2bus_device makes m_slot valid
    set_a2bus_device();

    astring tempstring;
    m_rom = device().machine().root_device().memregion(this->subtag(tempstring, DISKII_ROM_REGION))->base();
}
开发者ID:kleopatra999,项目名称:mess-svn,代码行数:8,代码来源:a2diskii.c


示例6: set_a2bus_device

void a2bus_dx1_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	save_item(NAME(m_volume));
	save_item(NAME(m_lastdac));
}
开发者ID:Ashura-X,项目名称:mame,代码行数:8,代码来源:a2dx1.cpp


示例7: set_a2bus_device

void a2bus_transwarp_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_timer = timer_alloc(0);

	save_item(NAME(m_bEnabled));
}
开发者ID:qwijibo,项目名称:mame,代码行数:9,代码来源:transwarp.cpp


示例8: set_a2bus_device

void a2bus_zipdrivebase_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(ZIPDRIVE_ROM_REGION).c_str())->base();

	save_item(NAME(m_lastdata));
}
开发者ID:DragonMinded,项目名称:mame,代码行数:9,代码来源:a2zipdrive.cpp


示例9: set_a2bus_device

void a2bus_swyft_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(SWYFT_ROM_REGION).c_str())->base();

	save_item(NAME(m_rombank));
}
开发者ID:GiuseppeGorgoglione,项目名称:mame,代码行数:9,代码来源:a2swyft.cpp


示例10: set_a2bus_device

void a2bus_sn76489_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();
	m_latch0 = m_latch1 = m_latch2 = m_latch3 = 0;

	save_item(NAME(m_latch0));
	save_item(NAME(m_latch1));
	save_item(NAME(m_latch2));
	save_item(NAME(m_latch3));
}
开发者ID:Enverex,项目名称:mame,代码行数:11,代码来源:a2alfam2.cpp


示例11: set_a2bus_device

void a2bus_ramcard_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	memset(m_ram, 0, 16*1024);

	save_item(NAME(m_inh_state));
	save_item(NAME(m_ram));
	save_item(NAME(m_dxxx_bank));
	save_item(NAME(m_last_offset));
}
开发者ID:Robbbert,项目名称:store1,代码行数:12,代码来源:ramcard16k.cpp


示例12: set_a2bus_device

void a2bus_vulcanbase_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(VULCAN_ROM_REGION).c_str())->base();

	save_item(NAME(m_lastdata));
	save_item(NAME(m_ram));
	save_item(NAME(m_rombank));
	save_item(NAME(m_rambank));
}
开发者ID:Ashura-X,项目名称:mame,代码行数:12,代码来源:a2vulcan.cpp


示例13: set_a2bus_device

void a2bus_mouse_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	// register save state variables
	save_item(NAME(m_port_a_in));
	save_item(NAME(m_port_b_in));
	save_item(NAME(m_last));
	save_item(NAME(m_count));

	m_port_b_in = 0x00;
}
开发者ID:Robbbert,项目名称:store1,代码行数:13,代码来源:mouse.cpp


示例14: set_a2bus_device

void a2bus_corvfdc02_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(FDC02_ROM_REGION).c_str())->base();

	m_timer = timer_alloc(0);

	save_item(NAME(m_fdc_local_status));
	save_item(NAME(m_fdc_local_command));
	save_item(NAME(m_bufptr));
	save_item(NAME(m_buffer));
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:14,代码来源:corvfdc02.c


示例15: set_a2bus_device

void a2bus_pic_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	astring tempstring;
	m_rom = device().machine().root_device().memregion(this->subtag(tempstring, PIC_ROM_REGION))->base();

	m_timer = timer_alloc(0, NULL);
	m_timer->adjust(attotime::never);

	save_item(NAME(m_ack));
	save_item(NAME(m_irqenable));
	save_item(NAME(m_autostrobe));
}
开发者ID:jiangzhonghui,项目名称:mame,代码行数:15,代码来源:a2pic.c


示例16: set_a2bus_device

void a2bus_videx80_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(VIDEOTERM_ROM_REGION).c_str())->base();

	m_chrrom = device().machine().root_device().memregion(this->subtag(VIDEOTERM_GFX_REGION).c_str())->base();

	memset(m_ram, 0, 4*512);

	save_item(NAME(m_ram));
	save_item(NAME(m_framecnt));
	save_item(NAME(m_rambank));
}
开发者ID:Robbbert,项目名称:store1,代码行数:15,代码来源:a2videoterm.cpp


示例17: set_a2bus_device

void a2bus_cffa2000_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	astring tempstring;
	m_rom = device().machine().root_device().memregion(this->subtag(tempstring, CFFA2_ROM_REGION))->base();

	// patch default setting so slave device is enabled
	m_rom[0x801] = 4;

	save_item(NAME(m_lastdata));
	save_item(NAME(m_writeprotect));
	save_item(NAME(m_eeprom));
}
开发者ID:kleopatra999,项目名称:mess-svn,代码行数:15,代码来源:a2cffa.c


示例18: set_a2bus_device

void a2bus_hsscsi_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	m_rom = device().machine().root_device().memregion(this->subtag(SCSI_ROM_REGION).c_str())->base();

	memset(m_ram, 0, 8192);

	save_item(NAME(m_ram));
	save_item(NAME(m_rambank));
	save_item(NAME(m_rombank));
	save_item(NAME(m_bank));
	save_item(NAME(m_drq));
	save_item(NAME(m_816block));
}
开发者ID:Robbbert,项目名称:store1,代码行数:16,代码来源:a2hsscsi.cpp


示例19: set_a2bus_device

void a2bus_applicard_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	// locate Z80 ROM
	m_z80rom = device().machine().root_device().memregion(this->subtag(Z80_ROM_REGION).c_str())->base();

	save_item(NAME(m_bROMAtZ80Zero));
	save_item(NAME(m_z80stat));
	save_item(NAME(m_6502stat));
	save_item(NAME(m_toz80));
	save_item(NAME(m_to6502));
	save_item(NAME(m_z80ram));

	memset(m_z80ram, 0, 64*1024);
}
开发者ID:Enverex,项目名称:mame,代码行数:17,代码来源:a2applicard.cpp


示例20: set_a2bus_device

void a2bus_vulcanbase_device::device_start()
{
	// set_a2bus_device makes m_slot valid
	set_a2bus_device();

	astring tempstring;
	m_rom = device().machine().root_device().memregion(this->subtag(tempstring, VULCAN_ROM_REGION))->base();

	// disable 40 meg partition size limit / protection
	m_rom[0x59e] = 0xea;
	m_rom[0x59f] = 0xea;

	save_item(NAME(m_lastdata));
	save_item(NAME(m_ram));
	save_item(NAME(m_rombank));
	save_item(NAME(m_rambank));
}
开发者ID:antervud,项目名称:MAMEHub,代码行数:17,代码来源:a2vulcan.c



注:本文中的set_a2bus_device函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ set_action函数代码示例发布时间:2022-05-30
下一篇:
C++ set_4bytes函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap