From 7c04d0d42c7a564161a33fb95bf6ece2183ffdef Mon Sep 17 00:00:00 2001 From: "Tom Ball (MSR)" Date: Sat, 9 Nov 2024 14:01:49 -0800 Subject: [PATCH] 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. }