From 54f446b035414e5b0242deab2ec0e92eb92ccb10 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Thu, 8 Jun 2017 12:59:16 +0100 Subject: [PATCH] Simplify xhtl, a little, to switch between HL/IX/IY Signed-off-by: Adrian.Conlon --- Z80/src/Z80.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Z80/src/Z80.cpp b/Z80/src/Z80.cpp index a5a2cf1..d9a6e9a 100644 --- a/Z80/src/Z80.cpp +++ b/Z80/src/Z80.cpp @@ -651,12 +651,7 @@ void EightBit::Z80::xhtl(register16_t& operand) { } void EightBit::Z80::xhtl() { - if (m_prefixDD) - xhtl(IX()); - else if (m_prefixFD) - xhtl(IY()); - else - xhtl(HL()); + xhtl(ALT_HL()); } #pragma endregion Miscellaneous instructions