From 1c2f66e85535b599822f9878cc319df69248438d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Sep 2024 21:23:58 -0400 Subject: [PATCH] Fix order of `if` tests. --- Machines/AmstradCPC/AmstradCPC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index db780a0ab..87c05bc7e 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -969,11 +969,11 @@ class ConcreteMachine: ssm_delegate_->perform(code); ssm_code_ = 0; } + } else if((ssm_code_ & 0xffff) == 0xedfe) { + ssm_delegate_->perform(0xfffe); + } else if((ssm_code_ & 0xffff) == 0xedff) { + ssm_delegate_->perform(0xffff); } - } else if((ssm_code_ & 0xffff) == 0xedfe) { - ssm_delegate_->perform(0xfffe); - } else if((ssm_code_ & 0xffff) == 0xedff) { - ssm_delegate_->perform(0xffff); } } [[fallthrough]];