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


C++ device_state_entry类代码示例

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


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


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