From 00b3007b9ff8722dd66b527974ef58e214b0af21 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 2 Jul 2024 21:51:00 -0400 Subject: [PATCH] Switch byte order. --- Machines/AmstradCPC/AmstradCPC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index ff547d481..67e3f0686 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -949,7 +949,7 @@ class ConcreteMachine: if(ssm_delegate_) { if((ssm_code_ & 0xff00ff00) == 0xed00ed00) { const auto code = uint16_t( - (ssm_code_ & 0xff) | ((ssm_code_ >> 8) & 0xff00) + ((ssm_code_ << 8) & 0xff00) | ((ssm_code_ >> 16) & 0x00ff) ); ssm_code_ = 0;