mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 07:31:15 +00:00
Clarify clock rates.
This commit is contained in:
parent
15583e7975
commit
c8fdde4c5e
@ -98,6 +98,9 @@ private:
|
||||
Interrupts &interrupts_;
|
||||
};
|
||||
|
||||
static constexpr auto NTSCclock = 14'318'180; // i.e. colour subcarrier * 4.
|
||||
static constexpr auto PALclock = 17'734'448; // i.e. very close to colour subcarrier * 4 — only about 0.1% off.
|
||||
|
||||
class ConcreteMachine:
|
||||
public BusController,
|
||||
public CPU::MOS6502::BusHandler,
|
||||
@ -113,11 +116,7 @@ public:
|
||||
timers_(interrupts_),
|
||||
video_(map_, interrupts_)
|
||||
{
|
||||
// PAL: 17,734,480 Mhz divided by 5 or 4?
|
||||
// NTSC: 14,318,180 Mhz
|
||||
// i.e. colour subcarriers multiplied by two?
|
||||
|
||||
set_clock_rate(17'734'480);
|
||||
set_clock_rate(PALclock);
|
||||
|
||||
const auto kernel = ROM::Name::Plus4KernelPALv5;
|
||||
const auto basic = ROM::Name::Plus4BASIC;
|
||||
|
@ -23,7 +23,7 @@
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
buildConfiguration = "Release"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
|
Loading…
x
Reference in New Issue
Block a user