Skip to content

Commit

Permalink
fix 'movec pcr,d0' not throwing exception on 68020 (fixes WHDload 18.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Jan 13, 2018
1 parent 5351eef commit 9fc7025
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/m68k/fame/famec_opcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -21537,6 +21537,10 @@ OPCODE(0x4E7A)
EXECUTE_EXCEPTION(M68K_PRIVILEGE_VIOLATION_EX,6);

FETCH_WORD(src);

if ((src & 0x0FFF) == 3 || ((src & 0x07FF) >= 4 && (src & 0x0FFF) != 0x804))
EXECUTE_EXCEPTION(M68K_ILLEGAL_INSTRUCTION_EX,6);

MOVEC2(src & 0x0FFF, src >> 12);
RET(6)
}
Expand Down

0 comments on commit 9fc7025

Please sign in to comment.