spc700: fix N flag in OP_LSRM (nw)

this macro is playing with fire:
#define FLAG_NZ     m_flag_n = m_flag_z /* Negative Flag and inverted Zero flag */
This commit is contained in:
hap 2017-05-15 18:34:04 +02:00
parent 8c18f02cee
commit ac0d547d6f

View File

@ -897,7 +897,7 @@ void spc700_device::SET_FLAG_I(uint32_t value)
CLK(BCLK); \
DST = EA_##MODE(); \
FLAG_NZ = read_8_##MODE(DST); \
FLAG_C = FLAG_NZ << 8; \
FLAG_C = FLAG_N << 8; \
FLAG_NZ >>= 1; \
write_8_##MODE(DST, FLAG_NZ)