ghidra/Ghidra/Processors/68000
Phlosioneer 058fa90387 Issue 4807 Fix movem PC instruction bug on 68000
The `movem` instruction's `(d16, PC)` addressing mode has an instruction
word, a mask word, and then an extension word. The addressing mode
uses the value of PC incremented to the extension word, in this case
`instr_start + 4`. The sleigh code incorrectly uses `instr_start + 2`.
The issue is present for both `movem.w` and `movem.l` variants. This
PR fixes the `PC` offset to `+4`.

See 68000 reference manual page 2-13 for PC indirect addressing mode,
and 4-128 for MOVEM documentation.

Partially addresses #4807.
2023-05-31 14:31:37 +00:00
..
data Issue 4807 Fix movem PC instruction bug on 68000 2023-05-31 14:31:37 +00:00
src GP-2974: Fixing warnings 2023-05-01 07:23:48 -04:00
build.gradle GP-849: Gradle 7 support 2021-05-12 13:45:16 -04:00
certification.manifest Merge remote-tracking branch 'origin/patch' 2021-03-17 19:38:50 -04:00
Module.manifest Candidate release of source code. 2019-03-26 13:46:51 -04:00