mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-06-02 13:41:33 +00:00
d199adb027
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
17 lines
290 B
C++
17 lines
290 B
C++
#include "stdafx.h"
|
|
#include "../inc/ClockedChip.h"
|
|
|
|
void EightBit::ClockedChip::tick(const int extra) {
|
|
for (int i = 0; i < extra; ++i)
|
|
tick();
|
|
}
|
|
|
|
void EightBit::ClockedChip::tick() {
|
|
++m_cycles;
|
|
Ticked.fire();
|
|
}
|
|
|
|
void EightBit::ClockedChip::resetCycles() noexcept {
|
|
m_cycles = 0;
|
|
}
|