mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-22 22:44:14 -04:00
Fix disasm.py (#1606)
* Fix disasm.py from doing the wrong thing * Update requirements.txt
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ crunch64>=0.3.1,<1.0.0
|
||||
ipl3checksum>=1.2.0,<2.0.0
|
||||
|
||||
# disasm
|
||||
rabbitizer>=1.0.0,<2.0.0
|
||||
rabbitizer>=1.3.0,<2.0.0
|
||||
|
||||
# Compression
|
||||
pyelftools>=0.26
|
||||
|
||||
@@ -1112,7 +1112,7 @@ def asm_header(section_name: str):
|
||||
def getImmOverride(insn: rabbitizer.Instruction):
|
||||
if insn.isBranch():
|
||||
return f".L{insn.getBranchOffset() + insn.vram:08X}"
|
||||
elif insn.isJump():
|
||||
elif insn.isJumpWithAddress():
|
||||
return proper_name(insn.getInstrIndexAsVram(), in_data=False, is_symbol=True)
|
||||
|
||||
elif insn.uniqueId == rabbitizer.InstrId.cpu_ori:
|
||||
|
||||
Reference in New Issue
Block a user