Fix ROR byte flag calculations. (thank you h-a-l-9000 for your help in determing which instruction was broken)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3205
This commit is contained in:
parent
7bce57da3e
commit
6640a3e6f0
2 changed files with 2 additions and 2 deletions
|
@ -754,7 +754,7 @@ static Bit8u DRC_CALL_CONV dynrec_rol_byte_simple(Bit8u op1,Bit8u op2) {
|
|||
static Bit8u DRC_CALL_CONV dynrec_ror_byte(Bit8u op1,Bit8u op2) DRC_FC;
|
||||
static Bit8u DRC_CALL_CONV dynrec_ror_byte(Bit8u op1,Bit8u op2) {
|
||||
if (!(op2&0x7)) {
|
||||
if (op2&0x10) {
|
||||
if (op2&0x18) {
|
||||
FillFlagsNoCFOF();
|
||||
SETFLAGBIT(CF,op1>>7);
|
||||
SETFLAGBIT(OF,(op1>>7) ^ ((op1>>6) & 1));
|
||||
|
|
|
@ -277,7 +277,7 @@
|
|||
|
||||
#define RORB(op1,op2,load,save) \
|
||||
if (!(op2&0x7)) { \
|
||||
if (op2&0x10) { \
|
||||
if (op2&0x18) { \
|
||||
FillFlagsNoCFOF(); \
|
||||
SETFLAGBIT(CF,op1>>7); \
|
||||
SETFLAGBIT(OF,(op1>>7) ^ ((op1>>6) & 1)); \
|
||||
|
|
Loading…
Add table
Reference in a new issue