EightBit/src/ClockedChip.cpp
Adrian Conlon d199adb027 Tidy EightBit library header usage (avoids compilation error with latest VS2019, "Memory.h")
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-05-29 10:31:32 +01:00

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;
}