Skip to content

Ghidra is a software reverse engineering (SRE) framework

8048: fix JMPP @A extra dereference

fenugrecbb08f674178f
diff --git a/Ghidra/Processors/8048/data/languages/8048.slaspec b/Ghidra/Processors/8048/data/languages/8048.slaspec
index ea362d0575..b7b7ef8ba6 100644
--- a/Ghidra/Processors/8048/data/languages/8048.slaspec
+++ b/Ghidra/Processors/8048/data/languages/8048.slaspec
@@ -273,7 +273,7 @@ P3Data: @A is A {
local addr:2 = 0x300; addr[0,8] = A; export *[CODE]:1 addr;
}
AddrInd: PData is PData {
- local addr:2 = inst_next; addr[0,8] = PData; export *[CODE]:1 addr;
+ local addr:2 = inst_next; addr[0,8] = PData; export addr;
}
Ab: abit is abit {
local bit:1 = (A>>abit)&1; export bit;
@@ -450,7 +450,7 @@ RniI: Imm is Imm {
goto Addr12;
}
:JMPP AddrInd is ophi=11 & oplo=3 & AddrInd {
- goto AddrInd;
+ goto [AddrInd];
}
:MOV A,Imm is (ophi=2 & A)... & Imm {
A = Imm;