From 176141581dd94dd354967bd119390e8361004203 Mon Sep 17 00:00:00 2001 From: dannyp303 Date: Mon, 9 Sep 2024 15:26:58 -0400 Subject: [PATCH] Update disassemblers/ofrak_ghidra/ofrak_ghidra/ghidra_scripts/GetInstructions.java Co-authored-by: Jacob Strieb <99368685+rbs-jacob@users.noreply.github.com> --- .../ofrak_ghidra/ghidra_scripts/GetInstructions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disassemblers/ofrak_ghidra/ofrak_ghidra/ghidra_scripts/GetInstructions.java b/disassemblers/ofrak_ghidra/ofrak_ghidra/ghidra_scripts/GetInstructions.java index 14392d3e9..982f08273 100644 --- a/disassemblers/ofrak_ghidra/ofrak_ghidra/ghidra_scripts/GetInstructions.java +++ b/disassemblers/ofrak_ghidra/ofrak_ghidra/ghidra_scripts/GetInstructions.java @@ -118,8 +118,8 @@ class ResultInstruction { Register vle_register = instruction.getRegister("vle"); if (vle_register != null) { BigInteger vle_val = instruction.getValue(vle_register, false); - if (vle_val != null){ - this.instruction_mode = vle_val.equals(BigInteger.ONE) ? "VLE" : this.instruction_mode ; + if (vle_val != null && vle_val.equals(BigInteger.ONE)){ + this.instruction_mode = "VLE"; } }