mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-21 06:30:31 +00:00
Simplify xhtl, a little, to switch between HL/IX/IY
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
d8977d32d3
commit
54f446b035
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user