1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Switched CRTMachine over to use Cycles as an explicit statement of units, and followed through on the effects of that.

This commit is contained in:
Thomas Harte
2017-07-22 22:17:29 -04:00
parent 83628b285b
commit 2ff157cf7a
15 changed files with 29 additions and 37 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ class ConcreteAllRAMProcessor: public AllRAMProcessor, public Processor<Concrete
return 1;
}
void run_for_cycles(int number_of_cycles) {
Processor<ConcreteAllRAMProcessor>::run_for_cycles(number_of_cycles);
void run_for(const Cycles &cycles) {
Processor<ConcreteAllRAMProcessor>::run_for(cycles);
}
bool is_jammed() {
+1 -1
View File
@@ -22,7 +22,7 @@ class AllRAMProcessor:
static AllRAMProcessor *Processor();
virtual ~AllRAMProcessor() {}
virtual void run_for_cycles(int number_of_cycles) = 0;
virtual void run_for(const Cycles &cycles) = 0;
virtual bool is_jammed() = 0;
virtual void set_irq_line(bool value) = 0;
virtual void set_nmi_line(bool value) = 0;