Added code generation for JCXZ, LOOP, JE, JNE, JS, JNS, JB, JNB, JO, JNO, JP and JNP.

This commit is contained in:
TomW 2015-04-14 20:40:40 +01:00
commit bbf0011e95
8 changed files with 485 additions and 42 deletions

View file

@ -70,6 +70,9 @@ static int opSAHF(uint32_t fetchdat)
flags_rebuild();
flags = (flags & 0xff00) | (AH & 0xd5) | 2;
CLOCK_CYCLES(3);
#ifdef DYNAREC
codegen_flags_changed = 0;
#endif
return 0;
}
static int opLAHF(uint32_t fetchdat)
@ -127,6 +130,9 @@ static int opPOPF_286(uint32_t fetchdat)
flags_extract();
CLOCK_CYCLES(5);
#ifdef DYNAREC
codegen_flags_changed = 0;
#endif
return 0;
}
static int opPOPF(uint32_t fetchdat)
@ -147,6 +153,9 @@ static int opPOPF(uint32_t fetchdat)
flags_extract();
CLOCK_CYCLES(5);
#ifdef DYNAREC
codegen_flags_changed = 0;
#endif
return 0;
}
static int opPOPFD(uint32_t fetchdat)
@ -174,5 +183,8 @@ static int opPOPFD(uint32_t fetchdat)
flags_extract();
CLOCK_CYCLES(5);
#ifdef DYNAREC
codegen_flags_changed = 0;
#endif
return 0;
}