looked through m6809 ops and fixed what i noticed (improves rollerg)

This commit is contained in:
Michaël Banaan Ananas 2013-03-16 20:42:51 +00:00
parent 12c90e46d1
commit 04c369f8d1
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ ASR16:
@m_temp.b.l = read_operand(1);
m_cc &= ~CC_NZC;
m_cc |= (m_temp.b.l & 1) ? CC_C : 0;
m_temp.w = set_flags<UINT16>(CC_NZ, ((INT16) m_temp.b.l) >> 1);
m_temp.w = set_flags<UINT16>(CC_NZ, ((INT16) m_temp.w) >> 1);
@eat(hd6309_native_mode() ? 0 : 1);
@write_operand(0, m_temp.b.h);
write_operand(1, m_temp.b.l);

View File

@ -517,7 +517,7 @@ LSRD:
else
m_cc &= ~CC_C;
m_d.w = set_flags<UINT16>(CC_NZ, safe_shift_right<INT16>(m_d.w, m_temp.b.l));
m_d.w = set_flags<UINT16>(CC_NZ, safe_shift_right<UINT16>(m_d.w, m_temp.b.l));
}
eat(1);
return;
@ -582,7 +582,7 @@ ABS8:
ABS16:
@m_temp.b.h = read_operand(0);
@m_temp.b.l = read_operand(1);
m_temp.w = set_flags<UINT16>(CC_NZVC, 0, m_temp.w, ((INT8) m_temp.w) >= 0 ? m_temp.w : -m_temp.w);
m_temp.w = set_flags<UINT16>(CC_NZVC, 0, m_temp.w, ((INT16) m_temp.w) >= 0 ? m_temp.w : -m_temp.w);
@eat(1);
@write_operand(0, m_temp.b.h);
write_operand(1, m_temp.b.l);