mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
konami.lst: correction to prev commit with shift count
This commit is contained in:
parent
2c7efb2177
commit
e7250f3563
@ -521,13 +521,13 @@ LSRDI:
|
||||
@m_temp.b.h = read_operand(0);
|
||||
@m_temp.b.l = read_operand(1);
|
||||
|
||||
do
|
||||
while (m_bcount-- & 0xf)
|
||||
{
|
||||
@eat(1);
|
||||
m_cc &= ~CC_C;
|
||||
m_cc |= (m_temp.w & 1) ? CC_C : 0;
|
||||
m_temp.w = set_flags<uint16_t>(CC_NZ, m_temp.w >> 1);
|
||||
} while (--m_bcount & 0xf);
|
||||
}
|
||||
|
||||
@write_operand(0, m_temp.b.h);
|
||||
write_operand(1, m_temp.b.l);
|
||||
@ -540,11 +540,11 @@ ASLDI:
|
||||
@m_temp.b.h = read_operand(0);
|
||||
@m_temp.b.l = read_operand(1);
|
||||
|
||||
do
|
||||
while (m_bcount-- & 0xf)
|
||||
{
|
||||
@eat(1);
|
||||
m_temp.w = set_flags<uint16_t>(CC_NZVC, m_temp.w, m_temp.w, m_temp.w << 1);
|
||||
} while (--m_bcount & 0xf);
|
||||
}
|
||||
|
||||
@write_operand(0, m_temp.b.h);
|
||||
write_operand(1, m_temp.b.l);
|
||||
@ -557,13 +557,13 @@ ASRDI:
|
||||
@m_temp.b.h = read_operand(0);
|
||||
@m_temp.b.l = read_operand(1);
|
||||
|
||||
do
|
||||
while (m_bcount-- & 0xf)
|
||||
{
|
||||
@eat(1);
|
||||
m_cc &= ~CC_C;
|
||||
m_cc |= (m_temp.w & 1) ? CC_C : 0;
|
||||
m_temp.w = set_flags<uint16_t>(CC_NZ, ((int16_t) m_temp.w) >> 1);
|
||||
} while (--m_bcount & 0xf);
|
||||
}
|
||||
|
||||
@write_operand(0, m_temp.b.h);
|
||||
write_operand(1, m_temp.b.l);
|
||||
@ -576,11 +576,11 @@ ROLDI:
|
||||
@m_temp.b.h = read_operand(0);
|
||||
@m_temp.b.l = read_operand(1);
|
||||
|
||||
do
|
||||
while (m_bcount-- & 0xf)
|
||||
{
|
||||
@eat(1);
|
||||
m_temp.w = set_flags<uint16_t>(CC_NZV, rotate_left(m_temp.w));
|
||||
} while (--m_bcount & 0xf);
|
||||
}
|
||||
|
||||
@write_operand(0, m_temp.b.h);
|
||||
write_operand(1, m_temp.b.l);
|
||||
@ -593,11 +593,11 @@ RORDI:
|
||||
@m_temp.b.h = read_operand(0);
|
||||
@m_temp.b.l = read_operand(1);
|
||||
|
||||
do
|
||||
while (m_bcount-- & 0xf)
|
||||
{
|
||||
@eat(1);
|
||||
m_temp.w = set_flags<uint16_t>(CC_NZ, rotate_right(m_temp.w));
|
||||
} while (--m_bcount & 0xf);
|
||||
}
|
||||
|
||||
@write_operand(0, m_temp.b.h);
|
||||
write_operand(1, m_temp.b.l);
|
||||
|
Loading…
Reference in New Issue
Block a user