Simplify xhtl, a little, to switch between HL/IX/IY

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon 2017-06-08 12:59:16 +01:00
parent d8977d32d3
commit 54f446b035

View File

@ -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