mirror of https://github.com/stella-emu/stella.git
Final updates for recent 64-bit cycles refactoring.
This commit is contained in:
parent
c4d04ffe26
commit
823c693a9e
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include "StateManager.hxx"
|
#include "StateManager.hxx"
|
||||||
|
|
||||||
#define STATE_HEADER "05000301state"
|
#define STATE_HEADER "05000302state"
|
||||||
#define MOVIE_HEADER "03030000movie"
|
#define MOVIE_HEADER "03030000movie"
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
|
@ -140,7 +140,7 @@ void AtariVox::clockDataIn(bool value)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void AtariVox::reset()
|
void AtariVox::reset()
|
||||||
{
|
{
|
||||||
myLastDataWriteCycle = mySystem.cycles();
|
myLastDataWriteCycle = 0;
|
||||||
myEEPROM->systemReset();
|
myEEPROM->systemReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,8 @@ M6532::M6532(const Console& console, const Settings& settings)
|
||||||
: myConsole(console),
|
: myConsole(console),
|
||||||
mySettings(settings),
|
mySettings(settings),
|
||||||
myTimer(0), mySubTimer(0), myDivider(1),
|
myTimer(0), mySubTimer(0), myDivider(1),
|
||||||
myTimerWrapped(false), myWrappedThisCycle(false), mySetTimerCycle(0), myLastCycle(0),
|
myTimerWrapped(false), myWrappedThisCycle(false),
|
||||||
|
mySetTimerCycle(0), myLastCycle(0),
|
||||||
myDDRA(0), myDDRB(0), myOutA(0), myOutB(0),
|
myDDRA(0), myDDRB(0), myOutA(0), myOutB(0),
|
||||||
myInterruptFlag(false),
|
myInterruptFlag(false),
|
||||||
myEdgeDetectPositive(false)
|
myEdgeDetectPositive(false)
|
||||||
|
@ -54,8 +55,7 @@ void M6532::reset()
|
||||||
myTimerWrapped = false;
|
myTimerWrapped = false;
|
||||||
myWrappedThisCycle = false;
|
myWrappedThisCycle = false;
|
||||||
|
|
||||||
mySetTimerCycle = 0;
|
mySetTimerCycle = myLastCycle = 0;
|
||||||
myLastCycle = mySystem->cycles();
|
|
||||||
|
|
||||||
// Zero the I/O registers
|
// Zero the I/O registers
|
||||||
myDDRA = myDDRB = myOutA = myOutB = 0x00;
|
myDDRA = myDDRB = myOutA = myOutB = 0x00;
|
||||||
|
|
|
@ -174,7 +174,7 @@ class M6532 : public Device
|
||||||
uInt64 mySetTimerCycle;
|
uInt64 mySetTimerCycle;
|
||||||
|
|
||||||
// Last cycle considered in emu updates
|
// Last cycle considered in emu updates
|
||||||
Int32 myLastCycle;
|
uInt64 myLastCycle;
|
||||||
|
|
||||||
// Data Direction Register for Port A
|
// Data Direction Register for Port A
|
||||||
uInt8 myDDRA;
|
uInt8 myDDRA;
|
||||||
|
|
|
@ -70,7 +70,7 @@ void System::reset(bool autodetect)
|
||||||
mySystemInAutodetect = autodetect;
|
mySystemInAutodetect = autodetect;
|
||||||
|
|
||||||
// Reset all devices
|
// Reset all devices
|
||||||
myCycles = 0; // Must be done first (the reset() methods use its value)
|
myCycles = 0; // Must be done first (the reset() methods may use its value)
|
||||||
myM6532.reset();
|
myM6532.reset();
|
||||||
myTIA.reset();
|
myTIA.reset();
|
||||||
myCart.reset();
|
myCart.reset();
|
||||||
|
|
|
@ -388,7 +388,7 @@ class System : public Serializable
|
||||||
// Cartridge device attached to the system
|
// Cartridge device attached to the system
|
||||||
Cartridge& myCart;
|
Cartridge& myCart;
|
||||||
|
|
||||||
// Number of system cycles executed since instantiation
|
// Number of system cycles executed since last reset
|
||||||
uInt64 myCycles;
|
uInt64 myCycles;
|
||||||
|
|
||||||
// Null device to use for page which are not installed
|
// Null device to use for page which are not installed
|
||||||
|
|
Loading…
Reference in New Issue