1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-05 13:30:07 +00:00

Preserve MOVE USP.

This commit is contained in:
Thomas Harte 2022-04-20 08:30:16 -04:00
parent 47d5d65633
commit 950fddebf9

View File

@ -898,8 +898,14 @@ struct ProcessorStorageConstructor {
case Operation::MOVEAw: opname = "MOVEA.w"; break;
case Operation::MOVEAl:
// A bunch of things are multiplexed onto MOVEA.l;
// disambiguate here.
if((opcode_ & 0xf1c0) == 0x41c0) {
opname = "LEA";
} else if ((opcode_ & 0xff8) == 0xe68) {
opname = "MOVEfromUSP";
} else if ((opcode_ & 0xff8) == 0xe60) {
opname = "MOVEtoUSP";
} else {
opname = "MOVEA.l";
}