From 950fddebf954086c25bd02cd4490662deee99bfe Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 20 Apr 2022 08:30:16 -0400 Subject: [PATCH] Preserve MOVE USP. --- Processors/68000/Implementation/68000Storage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Processors/68000/Implementation/68000Storage.cpp b/Processors/68000/Implementation/68000Storage.cpp index e2a134971..8cfa8ab9d 100644 --- a/Processors/68000/Implementation/68000Storage.cpp +++ b/Processors/68000/Implementation/68000Storage.cpp @@ -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"; }