[Core/68k] fixed NBCD insruction when using register operand

This commit is contained in:
ekeeke 2017-09-25 01:09:09 +02:00 committed by GitHub
parent e52926248a
commit 3fc3a57b26

View File

@ -15855,7 +15855,7 @@ static void m68k_op_mulu_16_i(void)
static void m68k_op_nbcd_8_d(void) static void m68k_op_nbcd_8_d(void)
{ {
uint* r_dst = &DY; uint* r_dst = &DY;
uint dst = *r_dst; uint dst = MASK_OUT_ABOVE_8(*r_dst);
uint res = -dst - XFLAG_AS_1(); uint res = -dst - XFLAG_AS_1();
if(res) if(res)