From 7c04d0d42c7a564161a33fb95bf6ece2183ffdef Mon Sep 17 00:00:00 2001 From: "Tom Ball (MSR)" Date: Sat, 9 Nov 2024 14:01:49 -0800 Subject: [PATCH 1/2] add new function --- libs/base/sim/control.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/base/sim/control.ts b/libs/base/sim/control.ts index 423427bdb..a1b45c73e 100644 --- a/libs/base/sim/control.ts +++ b/libs/base/sim/control.ts @@ -43,6 +43,13 @@ namespace pxsim.control { }) const cb = getResume(); } + export function singleSimulator() { + pxsim.Runtime.postMessage({ + type: "simulator", + command: "single" + }) + const cb = getResume(); + } export function waitMicros(micros: number) { thread.pause(micros / 1000); // it prempts not much we can do here. } From 936c86788f251e045502adca2bde9d36e7e4ba62 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Mon, 11 Nov 2024 15:01:30 -0800 Subject: [PATCH 2/2] remove getResume --- libs/base/sim/control.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/base/sim/control.ts b/libs/base/sim/control.ts index a1b45c73e..849c3ac65 100644 --- a/libs/base/sim/control.ts +++ b/libs/base/sim/control.ts @@ -48,7 +48,6 @@ namespace pxsim.control { type: "simulator", command: "single" }) - const cb = getResume(); } export function waitMicros(micros: number) { thread.pause(micros / 1000); // it prempts not much we can do here.