- Fix condition codes handling for BFINS instructions (uae 0.8.20)

This commit is contained in:
gbeauche 2002-01-06 08:21:09 +00:00
parent e3e86a68a9
commit eec091e56b

View File

@ -2017,6 +2017,8 @@ static void gen_opcode (unsigned long int opcode)
break;
case i_BFINS:
printf ("\ttmp = m68k_dreg(regs, (extra >> 12) & 7);\n");
printf ("\tSET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0);\n");
printf ("\tSET_ZFLG (tmp == 0);\n");
break;
default:
break;