mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-12 17:04:46 +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:
|
||||
_Reader(Z80& parent) : m_parent(parent) {
|
||||
m_parent.ReadingMemory.fire(EventArgs::empty());
|
||||
if (lowered(m_parent.M1()))
|
||||
m_parent.tick();
|
||||
m_parent.tick(2);
|
||||
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
|
||||
// is in the HALT state
|
||||
uint8_t EightBit::Z80::fetchOpCode() {
|
||||
tick();
|
||||
uint8_t returned;
|
||||
{
|
||||
_ActivateM1 m1(*this);
|
||||
|
Loading…
Reference in New Issue
Block a user