spc700: get rid of unneeded shifts (nw)

This commit is contained in:
hap 2017-05-15 18:30:56 +02:00
parent 21f7c8423f
commit 8c18f02cee

View File

@ -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: