Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pxtsim/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ namespace pxsim {
this.bus = new pxsim.EventBus(runtime, this);
}

public onEveryYield () {

}

public updateView() { }
public receiveMessage(msg: SimulatorMessage) {
if (!runtime || runtime.dead) return;
Expand Down Expand Up @@ -1447,6 +1451,7 @@ namespace pxsim {
__this.currFrame = p;
__this.currFrame.overwrittenPC = false;
p = p.fn(p)
__this.board.onEveryYield()
//if (yieldSteps-- < 0 && maybeYield(p, p.pc, 0)) break;
__this.maybeUpdateDisplay()
if (__this.currFrame.overwrittenPC)
Expand Down