sha0coder/libscemu

shrd broken

Closed this issue · 2 comments

{
    "i": 299,
    "x64dbgLine": {
      "rawLine": {
        "Index": "0012B",
        "Address": "0000000144F4B884",
        "Bytes": "41:0FACC2 E4",
        "Disassembly": "shrd r10d,eax,E4",
        "Registers": "r10: FFFFFFFFFFFB0000-> 6FFFB000",
        "Memory": "",
        "Comments": ""
      },
      "rip": "144f4b884",
      "registerChanges": [
        {
          "registerName": "r10",
          "previousValue": "fffffffffffb0000",
          "newValue": "6fffb000"
        }
      ],
      "memoryChanges": []
    },
    "scemuLine": {
      "rawLine": "diff_reg: rip = 144f4b884 r10 fffffffffffb0000 -> 6fffb00e;",
      "rip": "144f4b884",
      "registerChanges": [
        {
          "registerName": "r10",
          "previousValue": "fffffffffffb0000",
          "newValue": "6fffb00e"
        }
      ],
      "memoryChanges": []
    },
    "instructionErrors": [
      {
        "index": 0,
        "message": "newValue mismatch",
        "x64dbg": "6fffb000",
        "scemu": "6fffb00e"
      }
    ]
  },

do i need to hardcode it for undefined behavior?

yep hardcode or skip, it should not alter in the execution flow.

hardcoded