--- uae/src/gencpu.c 2018/04/24 16:59:53 1.1.1.14 +++ uae/src/gencpu.c 2018/04/24 17:01:41 1.1.1.15 @@ -22,8 +22,6 @@ #include "sysdeps.h" #include -#include "config.h" -#include "options.h" #include "readcpu.h" #define BOOL_TYPE "int" @@ -40,11 +38,6 @@ static int cpu_level; * are done with that opcode. */ static int next_cpu_level; -void write_log (const char *s, ...) -{ - fprintf (stderr, "%s", s); -} - static int *opcode_map; static int *opcode_next_clev; static int *opcode_last_postfix; @@ -2026,6 +2019,8 @@ static void gen_opcode (unsigned long in 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;