diff options
author | xCrystal <rgr.crystal@gmail.com> | 2020-12-15 20:47:13 +0100 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2020-12-15 20:47:13 +0100 |
commit | 117efe39b6b297dc52c1b5ad4d3012e7b00c8bd7 (patch) | |
tree | 785195227b981bf4c4dab2fb8d56b1e8bc112a38 /tools/tcgdisasm.py | |
parent | d8f98d97bcd41f710d51925470dc799a6051f022 (diff) |
Misc progress related to duel effect functions
Diffstat (limited to 'tools/tcgdisasm.py')
-rw-r--r-- | tools/tcgdisasm.py | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tools/tcgdisasm.py b/tools/tcgdisasm.py index 579d577..a887b1e 100644 --- a/tools/tcgdisasm.py +++ b/tools/tcgdisasm.py @@ -763,16 +763,17 @@ class Disassembler(object): # handle the special flag macros found_flag_macro = False - for flag_macro in flag_macros: - if flag_macro[0] == target_offset: - found_flag_macro = True - current_flag_macro = flag_macro - event_flag = "EVENT_FLAG_" + format(opcode_arg_3, "02X") - opcode_output_str = flag_macro[1].format(event_flag) - - # we need to skip a byte since this macro takes one extra - opcode_nargs+=1 - break + if opcode_byte == 0xcd: + for flag_macro in flag_macros: + if flag_macro[0] == target_offset: + found_flag_macro = True + current_flag_macro = flag_macro + event_flag = "EVENT_FLAG_" + format(opcode_arg_3, "02X") + opcode_output_str = flag_macro[1].format(event_flag) + + # we need to skip a byte since this macro takes one extra + opcode_nargs+=1 + break if not found_flag_macro and opcode_byte in call_commands + absolute_jumps: |