mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
looked through m6809 ops and fixed what i noticed (improves rollerg)
This commit is contained in:
parent
12c90e46d1
commit
04c369f8d1
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user