diff --git a/cocodump/targets/cdm8e/decoder.py b/cocodump/targets/cdm8e/decoder.py index df3f87fb..d7664d33 100644 --- a/cocodump/targets/cdm8e/decoder.py +++ b/cocodump/targets/cdm8e/decoder.py @@ -10,9 +10,13 @@ def normalize_imm8(val: int): return val -def decode(image: bytearray, has_ivt: bool = False) -> DecodedSection: +def append_new_instructions(): inst_decoders[InstructionGroup.LDI_GR].mnemonics[13] = "jmp" + +def decode(image: bytearray, has_ivt: bool = False) -> DecodedSection: + append_new_instructions() + section = DecodedSection() section_iter = iter(image)