From 02373fe7e17339167f9b7d792e5320d1aa5c103a Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sat, 7 Dec 2019 12:41:31 +0200 Subject: fix(demo): speed up execution --- demo/src/execute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demo/src') diff --git a/demo/src/execute.ts b/demo/src/execute.ts index f2c7d82..3a2f162 100644 --- a/demo/src/execute.ts +++ b/demo/src/execute.ts @@ -43,7 +43,7 @@ export class AVRRunner { avrInstruction(this.cpu); this.timer.tick(); this.usart.tick(); - if (this.cpu.cycles % 50000 === 0) { + if (this.cpu.cycles % 500000 === 0) { callback(this.cpu); await new Promise((resolve) => setTimeout(resolve, 0)); if (this.stopped) { -- cgit v1.2.3