aboutsummaryrefslogtreecommitdiffgithub
path: root/packages/novice/novice/simulator/simulator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/novice/novice/simulator/simulator.ts')
-rw-r--r--packages/novice/novice/simulator/simulator.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/novice/novice/simulator/simulator.ts b/packages/novice/novice/simulator/simulator.ts
index f0620bf..3e21a80 100644
--- a/packages/novice/novice/simulator/simulator.ts
+++ b/packages/novice/novice/simulator/simulator.ts
@@ -29,6 +29,10 @@ class Simulator implements Memory {
public getNumExec() { return this.numExec; }
+ public getLogLength(): number {
+ return this.log.length;
+ }
+
public loadSections(sections: MachineCodeSection[]): void {
const updates: MachineStateUpdate[] = [];