Add Card::Update() (PR #1000)

And use it in ContinueExecution()
This commit is contained in:
Andrea
2021-11-13 18:13:01 +00:00
committed by GitHub
parent 8662a99179
commit 2e04ce348a
18 changed files with 63 additions and 23 deletions
+18
View File
@@ -52,3 +52,21 @@ void DummyCard::InitializeIO(LPBYTE pCxRomPeripheral)
break;
}
}
void DummyCard::Update(const ULONG nExecutedCycles)
{
switch (QueryType())
{
case CT_GenericPrinter:
PrintUpdate(nExecutedCycles);
break;
case CT_MockingboardC:
case CT_Phasor:
// only in slot 4
if (m_slot == SLOT4)
{
MB_PeriodicUpdate(nExecutedCycles);
}
break;
}
}