14.1.2 Banked Data Memory and Values Displayed in Windows
This feature applies only to 8-bit PIC MCU devices that use banked Data memory (RAM).
In MPLAB X IDE v5.20 and earlier, a register address always includes the bank offset in the value displayed. However, this is not always correct as the actual value can only be accurately calculated when the instruction is at the program counter (PC).
In MPLAB X IDE v5.25 and later, a register address only includes the bank offset when the PC is on the line with the register address. When the PC is not on that line, the value defaults to the one shown in code (no bank offset or bank 0).
Behavior Change from v5.20 to v5.25
Consider the example code snipet in the figure below. Display behavior for disassembly code in the Program Memory window (DisAssy colomn) or Disassembly window is shown in the table.
MPLAB X IDE | Disassembly of Line 15 - Not at PC | Disassembly of Line 15 - At PC |
---|---|---|
v5.20 and earlier | CLRF 0x1D74 |
CLRF 0x1D74 |
v5.25 and later | CLRF 0x74 |
CLRF 0x1D74 |