Fix disasm.py (#1606)

* Fix disasm.py from doing the wrong thing

* Update requirements.txt
This commit is contained in:
Anghelo Carvajal 2024-02-19 19:41:36 -03:00 committed by GitHub
parent eb577e29e4
commit 3b8db093f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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: