mirror of https://github.com/zeldaret/mm.git
Fix disasm.py (#1606)
* Fix disasm.py from doing the wrong thing * Update requirements.txt
This commit is contained in:
parent
eb577e29e4
commit
3b8db093f6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue