Skip to content

Commit

Permalink
[cocodump] Refactor adding instructions in CdM-8e target
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelix8996 committed Feb 12, 2024
1 parent 494a600 commit 4581ce1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cocodump/targets/cdm8e/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4581ce1

Please sign in to comment.