mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-14 03:25:45 +00:00
Use the same optimisation techniques on the Z80 header. Up to 233Mhz now.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -181,12 +181,12 @@ namespace EightBit {
|
|||||||
case 5:
|
case 5:
|
||||||
return HL2().low;
|
return HL2().low;
|
||||||
case 6:
|
case 6:
|
||||||
if (m_displaced) {
|
if (!m_displaced) {
|
||||||
m_displacement = fetchByte();
|
m_memory.ADDRESS() = HL();
|
||||||
return DISPLACED();
|
return m_memory.reference();
|
||||||
}
|
}
|
||||||
m_memory.ADDRESS() = HL();
|
m_displacement = fetchByte();
|
||||||
return m_memory.reference();
|
return DISPLACED();
|
||||||
case 7:
|
case 7:
|
||||||
return a;
|
return a;
|
||||||
default:
|
default:
|
||||||
@@ -232,13 +232,12 @@ namespace EightBit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
register16_t& HL2() {
|
register16_t& HL2() {
|
||||||
if (m_displaced) {
|
if (!m_displaced)
|
||||||
if (m_prefixDD)
|
return HL();
|
||||||
return IX();
|
if (m_prefixDD)
|
||||||
// Must be FD prefix
|
return IX();
|
||||||
return IY();
|
// Must be FD prefix
|
||||||
}
|
return IY();
|
||||||
return HL();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
register16_t& RP2(int rp) {
|
register16_t& RP2(int rp) {
|
||||||
|
Reference in New Issue
Block a user