1
0
Fork 0

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:
Peter Veenstra 2008-08-19 13:59:24 +00:00
parent 7bce57da3e
commit 6640a3e6f0
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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)); \