Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-4585: Fixed 6805 branch conditionals

ghidorahrex0e481512a8c4
diff --git a/Ghidra/Processors/MC6800/data/languages/6805.slaspec b/Ghidra/Processors/MC6800/data/languages/6805.slaspec
index 23d42bbe4b..7edef3f495 100644
--- a/Ghidra/Processors/MC6800/data/languages/6805.slaspec
+++ b/Ghidra/Processors/MC6800/data/languages/6805.slaspec
@@ -169,7 +169,7 @@ DIRECT: imm8 is imm8 { export *:1 imm8; }
}
:BHI REL is op=0x22;REL
{
- local tmp = C + Z;
+ local tmp = C || Z;
if (tmp == 0) goto REL;
}
@@ -195,7 +195,7 @@ DIRECT: imm8 is imm8 { export *:1 imm8; }
:BLS REL is op=0x23;REL
{
- local tmp = C + Z;
+ local tmp = C || Z;
if (tmp) goto REL;
}