本文整理汇总了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;
}
}
示例2:
void tms32082_pp_device::state_string_export(const device_state_entry &entry, astring &str)
{
switch (entry.index())
{
case STATE_GENFLAGS:
str.printf("?");
break;
}
}
示例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;
}
}
示例4:
void v60_device::state_export(const device_state_entry &entry)
{
switch (entry.index())
{
case V60_PSW:
m_debugger_temp = v60ReadPSW();
break;
}
}
示例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;
}
}
示例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;
}
}
示例7:
void v60_device::state_import(const device_state_entry &entry)
{
switch (entry.index())
{
case V60_PSW:
v60WritePSW( m_debugger_temp );
break;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}