aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/simulator/simulator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'novice/simulator/simulator.ts')
-rw-r--r--novice/simulator/simulator.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/novice/simulator/simulator.ts b/novice/simulator/simulator.ts
index 6da9687..4800e4b 100644
--- a/novice/simulator/simulator.ts
+++ b/novice/simulator/simulator.ts
@@ -1,6 +1,7 @@
import { Fields, InstructionSpec, IO, Isa, MachineCodeSection, MachineStateLogEntry,
MachineStateUpdate, Reg, RegIdentifier } from '../isa';
import { forceUnsigned, maskTo, sextTo } from '../util';
+import { Memory } from './mem';
class InstrLut {
private isa: Isa;
@@ -81,7 +82,7 @@ class InstrLut {
}
}
-class Simulator {
+class Simulator implements Memory {
protected pc: number;
protected mem: {[addr: number]: number};
protected regs: {