mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
spc700: get rid of unneeded shifts (nw)
This commit is contained in:
parent
21f7c8423f
commit
8c18f02cee
@ -1252,14 +1252,14 @@ void spc700_device::state_string_export(const device_state_entry &entry, std::st
|
|||||||
{
|
{
|
||||||
case STATE_GENFLAGS:
|
case STATE_GENFLAGS:
|
||||||
str = string_format("%c%c%c%c%c%c%c%c",
|
str = string_format("%c%c%c%c%c%c%c%c",
|
||||||
(m_flag_n & 0x80) ? 'N':'.',
|
(FLAG_N & 0x80) ? 'N':'.',
|
||||||
((m_flag_v & 0x80) >> 1) ? 'V':'.',
|
(FLAG_V & 0x80) ? 'V':'.',
|
||||||
(m_flag_p>>3) ? 'P':'.',
|
(FLAG_P) ? 'P':'.',
|
||||||
(m_flag_b) ? 'B':'.',
|
(FLAG_B) ? 'B':'.',
|
||||||
(m_flag_h & HFLAG_SET) ? 'H':'.',
|
(FLAG_H & HFLAG_SET) ? 'H':'.',
|
||||||
( m_flag_i) ? 'I':'.',
|
(FLAG_I) ? 'I':'.',
|
||||||
(((!m_flag_z) << 1) & 1) ? 'Z':'.',
|
(!FLAG_Z) ? 'Z':'.',
|
||||||
((m_flag_c >> 8)&1) ? 'C':'.'
|
(FLAG_C & 0x100) ? 'C':'.'
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1282,14 +1282,14 @@ void spc700_device::state_export(const device_state_entry &entry)
|
|||||||
switch (entry.index())
|
switch (entry.index())
|
||||||
{
|
{
|
||||||
case SPC700_P:
|
case SPC700_P:
|
||||||
m_debugger_temp = ((m_flag_n & 0x80) |
|
m_debugger_temp = ((FLAG_N & 0x80) |
|
||||||
((m_flag_v & 0x80) >> 1) |
|
((FLAG_V & 0x80) >> 1) |
|
||||||
m_flag_p>>3 |
|
FLAG_P>>3 |
|
||||||
m_flag_b |
|
FLAG_B |
|
||||||
(m_flag_h & HFLAG_SET) |
|
(FLAG_H & HFLAG_SET) |
|
||||||
m_flag_i |
|
FLAG_I |
|
||||||
((!m_flag_z) << 1) |
|
((!FLAG_Z) << 1) |
|
||||||
((m_flag_c >> 8)&1));
|
((FLAG_C >> 8)&1));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STATE_GENSP:
|
case STATE_GENSP:
|
||||||
|
Loading…
Reference in New Issue
Block a user