Skip to content

Ghidra is a software reverse engineering (SRE) framework

Fix for #2844 re. addresses of TBLPAG and PSVPAG

gtackett0cc15688717f
diff --git a/Ghidra/Processors/PIC/data/languages/PIC24.sinc b/Ghidra/Processors/PIC/data/languages/PIC24.sinc
index 5392c6e1c7..4185851431 100644
--- a/Ghidra/Processors/PIC/data/languages/PIC24.sinc
+++ b/Ghidra/Processors/PIC/data/languages/PIC24.sinc
@@ -86,8 +86,8 @@ define ram offset=0x36 size=2 [ RCOUNT ]; # Repeat counter
# define ram offset=0x38 size=2 [ DCOUNT ]; # 13 bits long DO Loop counter
define ram offset=0x54 size=1 [ TBLPAG ]; # 7bit Data Table Page Address
@else
-define ram offset=0x31 size=1 [ TBLPAG ]; # 8bit Data Table Page Address
-define ram offset=0x33 size=1 [ PSVPAG ]; # Program Memory Visibility Page Address Pointer
+define ram offset=0x32 size=1 [ TBLPAG ]; # 8bit Data Table Page Address
+define ram offset=0x34 size=1 [ PSVPAG ]; # Program Memory Visibility Page Address Pointer
define ram offset=0x36 size=2 [ RCOUNT ]; # Repeat counter
define ram offset=0x38 size=2 [ DCOUNT ]; # 13 bits long DO Loop counter
define ram offset=0x3A size=3 [ DOSTART ];