mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-16 19:32:32 +00:00
Z80: Tidy the M1 activation sequence a little (start moving towards ZX Spectrum memory contention model)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
e0e137415f
commit
4ec462e79a
@ -69,6 +69,8 @@ uint8_t EightBit::Z80::memoryRead() {
|
|||||||
public:
|
public:
|
||||||
_Reader(Z80& parent) : m_parent(parent) {
|
_Reader(Z80& parent) : m_parent(parent) {
|
||||||
m_parent.ReadingMemory.fire(EventArgs::empty());
|
m_parent.ReadingMemory.fire(EventArgs::empty());
|
||||||
|
if (lowered(m_parent.M1()))
|
||||||
|
m_parent.tick();
|
||||||
m_parent.tick(2);
|
m_parent.tick(2);
|
||||||
m_parent.lowerMREQ();
|
m_parent.lowerMREQ();
|
||||||
}
|
}
|
||||||
@ -750,7 +752,6 @@ void EightBit::Z80::fetchDisplacement() {
|
|||||||
// CPU.The HALT acknowledge signal is active during this time indicating that the processor
|
// CPU.The HALT acknowledge signal is active during this time indicating that the processor
|
||||||
// is in the HALT state
|
// is in the HALT state
|
||||||
uint8_t EightBit::Z80::fetchOpCode() {
|
uint8_t EightBit::Z80::fetchOpCode() {
|
||||||
tick();
|
|
||||||
uint8_t returned;
|
uint8_t returned;
|
||||||
{
|
{
|
||||||
_ActivateM1 m1(*this);
|
_ActivateM1 m1(*this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user