当前位置: 首页>>代码示例>>C++>>正文


C++ set_a2bus_device函数代码示例

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


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


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