Fix regression with ADDC instruction
[emu8051.git] / src / common / opcode2c.pl
index 035c718..8b90af8 100755 (executable)
@@ -491,7 +491,7 @@ for ($i=0 ; $i< 256; $i++) {
            cfw("psw_clr_ov();");
            cfw("if ( destination + source + carryflag > 0xFF ) {");
            cfw("   psw_set_cy();");
-           cfw("   if (((destination & 0x7F) + (source & 0x7F) + carryflag) < 0x80);");
+           cfw("   if (((destination & 0x7F) + (source & 0x7F) + carryflag) < 0x80)");
            cfw("       psw_set_ov();");
            cfw("} else if (((destination & 0x7F) + (source & 0x7F) + carryflag) > 0x7F)  psw_set_ov();");
            cfw("if (((destination & 0x0F) + (source & 0x0F) + carryflag) > 0x0F)  psw_set_ac();");