From 3673f931b8ea07fa4550eee1f8debc8510c1fbd6 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 21 Apr 2022 09:48:49 -0400 Subject: [PATCH] Correct ASL/ASR/etc output. --- Processors/68000/Implementation/68000Storage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Storage.cpp b/Processors/68000/Implementation/68000Storage.cpp index 24103114f..230957b66 100644 --- a/Processors/68000/Implementation/68000Storage.cpp +++ b/Processors/68000/Implementation/68000Storage.cpp @@ -2245,7 +2245,12 @@ struct ProcessorStorageConstructor { case Decoder::ASLR_LSLR_ROLR_ROXLRr: { program.set_destination(storage_, 0, ea_register); - dumper.set_source(Dn, ea_register); + dumper.set_dest(Dn, ea_register); + if(instruction & 0x20) { + dumper.set_source(Dn, data_register); + } else { + dumper.set_source(Quick, data_register); + } // All further decoding occurs at runtime; that's also when the proper number of // no-op cycles will be scheduled.