mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-13 02:29:40 +00:00
MB: include 1-cycle 65C02 opcodes
This commit is contained in:
parent
c11301ff4e
commit
8567f0a651
|
@ -220,7 +220,6 @@ static UINT g_cyclesThisAudioFrame = 0;
|
||||||
// Forward refs:
|
// Forward refs:
|
||||||
static DWORD WINAPI SSI263Thread(LPVOID);
|
static DWORD WINAPI SSI263Thread(LPVOID);
|
||||||
static void Votrax_Write(BYTE nDevice, BYTE nValue);
|
static void Votrax_Write(BYTE nDevice, BYTE nValue);
|
||||||
static void MB_Update(void);
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -786,7 +785,6 @@ static UINT64 g_uLastMBUpdateCycle = 0;
|
||||||
// Called by:
|
// Called by:
|
||||||
// . MB_UpdateCycles() - when g_nMBTimerDevice == {0,1,2,3}
|
// . MB_UpdateCycles() - when g_nMBTimerDevice == {0,1,2,3}
|
||||||
// . MB_PeriodicUpdate() - when g_nMBTimerDevice == kTIMERDEVICE_INVALID
|
// . MB_PeriodicUpdate() - when g_nMBTimerDevice == kTIMERDEVICE_INVALID
|
||||||
// . SY6522_Write() - when multiple TIMER1s (interrupt sources) are active
|
|
||||||
static void MB_Update(void)
|
static void MB_Update(void)
|
||||||
{
|
{
|
||||||
if (!MockingboardVoice.bActive)
|
if (!MockingboardVoice.bActive)
|
||||||
|
@ -1847,9 +1845,8 @@ bool MB_UpdateCycles(ULONG uExecutedCycles)
|
||||||
UINT64 uCycles = g_nCumulativeCycles - g_uLastCumulativeCycles;
|
UINT64 uCycles = g_nCumulativeCycles - g_uLastCumulativeCycles;
|
||||||
if (uCycles == 0)
|
if (uCycles == 0)
|
||||||
return false; // Likely when called from CpuExecute()
|
return false; // Likely when called from CpuExecute()
|
||||||
_ASSERT(uCycles > 1);
|
|
||||||
|
|
||||||
const bool isOpcode = (uCycles > 1 && uCycles <= 7); // todo: better to pass in a flag?
|
const bool isOpcode = (uCycles <= 7); // todo: better to pass in a flag?
|
||||||
|
|
||||||
g_uLastCumulativeCycles = g_nCumulativeCycles;
|
g_uLastCumulativeCycles = g_nCumulativeCycles;
|
||||||
_ASSERT(uCycles < 0x10000);
|
_ASSERT(uCycles < 0x10000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user