Commits

mercurysquad  committed 30b0ce9

Fixed a bug in decoder where it incorrectly incremented bytesToSkip by only 1 instead of 4 for mod 0 rm 4

  • Participants
  • Parent commits be7c463

Comments (0)

Files changed (1)

File C/OperandDecoder.c

     }
     else if (rm == 5 && mod == 0) {
         effadd = disp32(++modRM);
-        decoded.bytesToSkip++;
+        decoded.bytesToSkip += 4;
     }
     else
         effadd = regs->reg[7 - rm];