You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The relocation for cmpl $0x3, 0x18c is being applied to $0x3 rather than 0x18c.
curState is at offset 0x18c of g_Supervisor and is being compared to 3 in the source code while asm-differ is treating $0x3 as an offset rather than an immediate.
Changing the regex from (^|(?<=\*)|(?<=\$))0x[0-9a-f]+ to (^|(?<=\*)|(?<!\$))0x[0-9a-f]+ captures the correct value in cmpl $0x3, 0x18c.
It may cause issues in other instructions though.
The text was updated successfully, but these errors were encountered:
The relocation for
cmpl $0x3, 0x18c
is being applied to$0x3
rather than0x18c
.curState
is at offset0x18c
ofg_Supervisor
and is being compared to3
in the source code while asm-differ is treating$0x3
as an offset rather than an immediate.decomp.me scratch link:
https://decomp.me/scratch/Og700
Source code:
asm-differ output:
objdump output:
Related code in asm-differ:
https://github.com/simonlindholm/asm-differ/blob/main/diff.py#L1915
Changing the regex from
(^|(?<=\*)|(?<=\$))0x[0-9a-f]+
to(^|(?<=\*)|(?<!\$))0x[0-9a-f]+
captures the correct value incmpl $0x3, 0x18c
.It may cause issues in other instructions though.
The text was updated successfully, but these errors were encountered: