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

C++ device_state_entry类代码示例

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

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



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

示例1:

void alpha8201_cpu_device::state_string_export(const device_state_entry &entry, astring &string)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			string.printf("%c%c", m_cf?'C':'.', m_zf?'Z':'.');
			break;
	}
}
开发者ID:LeWoY,项目名称:MAMEHub,代码行数:9,代码来源:alph8201.c


示例2:

void tms32082_pp_device::state_string_export(const device_state_entry &entry, astring &str)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			str.printf("?");
			break;
	}
}
开发者ID:andysarcade,项目名称:mame,代码行数:9,代码来源:tms32082.c


示例3:

void n8x300_cpu_device::state_string_export(const device_state_entry &entry, astring &string)
{
	switch (entry.index())
	{
//      case STATE_GENFLAGS:
//          string.printf("%c%c%c%c%c%c",
//          break;
	}
}
开发者ID:Ander-son,项目名称:libretro-mame,代码行数:9,代码来源:8x300.c


示例4:

void v60_device::state_export(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case V60_PSW:
			m_debugger_temp = v60ReadPSW();
			break;
	}
}
开发者ID:Fulg,项目名称:mame,代码行数:9,代码来源:v60.cpp


示例5:

void mb86233_cpu_device::state_string_export(const device_state_entry &entry, astring &string)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			string.printf("%c%c", (m_sr & SIGN_FLAG) ? 'N' : 'n', (m_sr & ZERO_FLAG) ? 'Z' : 'z' );
			break;
	}
}
开发者ID:AreaScout,项目名称:mame-libretro,代码行数:9,代码来源:mb86233.c


示例6:

void pdp8_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			strprintf(str, "%c", m_halt ? 'H' : '.');
			break;
	}
}
开发者ID:Robbbert,项目名称:store1,代码行数:9,代码来源:pdp8.cpp


示例7:

void v60_device::state_import(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case V60_PSW:
			v60WritePSW( m_debugger_temp );
			break;
	}
}
开发者ID:Ashura-X,项目名称:mame,代码行数:9,代码来源:v60.cpp


示例8:

void tms32082_pp_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			str = "?";
			break;
	}
}
开发者ID:Ashura-X,项目名称:mame,代码行数:9,代码来源:tms32082.cpp


示例9:

void am29000_cpu_device::state_import(const device_state_entry &entry)
{
	switch (entry.index())
	{
	case AM29000_PC:
	case STATE_GENPCBASE:
		m_next_pc = m_pc;
		break;
	}
}
开发者ID:system11b,项目名称:mame,代码行数:10,代码来源:am29000.cpp


示例10: BIT

void alpha8201_cpu_device::state_import(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case ALPHA8201_PC:
			m_PREVPC = m_pc.w.l;
			break;

		case STATE_GENPCBASE:
			m_pc.w.l = m_PREVPC;
			break;

		case STATE_GENFLAGS:
			m_cf = BIT(m_flags, 1);
			m_zf = BIT(m_flags, 0);
			break;

		case ALPHA8201_SP:
		case STATE_GENSP:
			M_WRMEM(0x001, m_sp);
			break;

		case ALPHA8201_R0:
			WR_REG(0, m_R[0]);
			break;

		case ALPHA8201_R1:
			WR_REG(1, m_R[1]);
			break;

		case ALPHA8201_R2:
			WR_REG(2, m_R[2]);
			break;

		case ALPHA8201_R3:
			WR_REG(3, m_R[3]);
			break;

		case ALPHA8201_R4:
			WR_REG(4, m_R[4]);
			break;

		case ALPHA8201_R5:
			WR_REG(5, m_R[5]);
			break;

		case ALPHA8201_R6:
			WR_REG(6, m_R[6]);
			break;

		case ALPHA8201_R7:
			WR_REG(7, m_R[7]);
			break;
	}
}
开发者ID:system11b,项目名称:mame,代码行数:55,代码来源:alph8201.cpp


示例11: state_string_export

void cosmac_device::state_string_export(const device_state_entry &entry, std::string &str)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			strprintf(str, "%c%c%c",
							m_df ? 'D' : '.',
							m_ie ? 'I' : '.',
							m_q  ? 'Q' : '.');
			break;
	}
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:12,代码来源:cosmac.c


示例12:

void m65ce02_device::state_import(const device_state_entry &entry)
{
	switch(entry.index()) {
	case STATE_GENFLAGS:
	case M6502_P:
		P = P | F_B;
		break;
	case M65CE02_B:
		B <<= 8;
		break;
	}
}
开发者ID:Enverex,项目名称:mame,代码行数:12,代码来源:m65ce02.cpp


示例13: state_string_export

void xxx_cpu_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			strprintf(str, "%c%c%c%c",
				m_flags & 0x80 ? 'S':'.',
				m_flags & 0x40 ? 'Z':'.',
				m_flags & 0x20 ? 'V':'.',
				m_flags & 0x10 ? 'C':'.');
			break;
	}
}
开发者ID:Fulg,项目名称:mame,代码行数:13,代码来源:template_cpu.cpp


示例14: state_import

void cosmac_device::state_import(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case STATE_GENPC:
			R[P] = m_pc;
			break;

		case STATE_GENFLAGS:
			SET_FLAGS(m_flagsio);
			break;
	}
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:13,代码来源:cosmac.c


示例15: state_export

void cosmac_device::state_export(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case STATE_GENPC:
			m_pc = R[P];
			break;

		case STATE_GENFLAGS:
			m_flagsio = GET_FLAGS();
			break;
	}
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:13,代码来源:cosmac.c


示例16:

void lc8670_cpu_device::state_string_export(const device_state_entry &entry, astring &string)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			string.printf("%s%s%s%s",
				GET_CY ? "CY" : "..",
				GET_AC ? "AC" : "..",
				GET_OV ? "OV" : "..",
				GET_P  ? "P"  : "."
			);
			break;
	}
}
开发者ID:jiangzhonghui,项目名称:mame,代码行数:14,代码来源:lc8670.c


示例17:

// disasm
void hmcs40_cpu_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			str = string_format("%c%c",
				m_c ? 'C':'c',
				m_s ? 'S':'s'
			);
			break;

		default: break;
	}
}
开发者ID:Ashura-X,项目名称:mame,代码行数:15,代码来源:hmcs40.cpp


示例18: state_export

void arc_device::state_export(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case 0:
			m_debugger_temp = m_pc << 2;
			break;

		case STATE_GENPC:
		case STATE_GENPCBASE:
			m_debugger_temp = m_pc << 2;
			break;
	}
}
开发者ID:RalfVB,项目名称:mame,代码行数:14,代码来源:arc.cpp


示例19:

void dsp32c_device::state_import(const device_state_entry &entry)
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			break;

		case DSP32_PCR:
			update_pcr(m_iotemp);
			break;

		default:
			fatalerror("dsp32c_device::state_import called for unexpected value\n");
	}
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:15,代码来源:dsp32.c


示例20:

void amis2000_base_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
	switch (entry.index())
	{
		case STATE_GENFLAGS:
			str = string_format("%c%c%c%c%c%c",
				m_f & 0x20 ? '6':'.',
				m_f & 0x10 ? '5':'.',
				m_f & 0x08 ? '4':'.',
				m_f & 0x04 ? '3':'.',
				m_f & 0x02 ? '2':'.',
				m_f & 0x01 ? '1':'.');
			break;
	}
}
开发者ID:Tauwasser,项目名称:mame,代码行数:15,代码来源:amis2000.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ device_t类代码示例发布时间:2022-05-31
下一篇:
C++ device_slot_interface类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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