mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Reduced 1540 PLL to running at 4Mhz. Which is possibly correct (?) Made minor change to avoid divide if possible.
This commit is contained in:
parent
5d40d70c92
commit
d832e5e10d
@ -14,7 +14,7 @@ using namespace Commodore::C1540;
|
||||
|
||||
Machine::Machine() :
|
||||
_shift_register(0),
|
||||
Storage::DiskDrive(1000000, 16, 300)
|
||||
Storage::DiskDrive(1000000, 4, 300)
|
||||
{
|
||||
// create a serial port and a VIA to run it
|
||||
_serialPortVIA.reset(new SerialPortVIA);
|
||||
|
@ -27,9 +27,10 @@ DigitalPhaseLockedLoop::DigitalPhaseLockedLoop(int clocks_per_bit, int tolerance
|
||||
void DigitalPhaseLockedLoop::run_for_cycles(int number_of_cycles)
|
||||
{
|
||||
_phase += number_of_cycles;
|
||||
int windows_crossed = _phase / _window_length;
|
||||
if(windows_crossed)
|
||||
if(_phase >= _window_length)
|
||||
{
|
||||
int windows_crossed = _phase / _window_length;
|
||||
|
||||
// check whether this triggers any 0s, if anybody cares
|
||||
if(_delegate)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user