mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-02-01 16:31:42 +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() {
|
void EightBit::Z80::xhtl() {
|
||||||
if (m_prefixDD)
|
xhtl(ALT_HL());
|
||||||
xhtl(IX());
|
|
||||||
else if (m_prefixFD)
|
|
||||||
xhtl(IY());
|
|
||||||
else
|
|
||||||
xhtl(HL());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma endregion Miscellaneous instructions
|
#pragma endregion Miscellaneous instructions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user