aboutsummaryrefslogtreecommitdiff
path: root/demo/src/execute.ts
diff options
context:
space:
mode:
authorUri Shaked2020-12-09 15:55:12 +0200
committerGitHub2020-12-09 15:55:12 +0200
commitb2280efa5457685db66d6ce6b156f37d5e678204 (patch)
tree1857fe48d3e2d32a39cfe810a0dfdd7d96526b3a /demo/src/execute.ts
parenttest(cpu): improve test name (diff)
parentperf!: centeral timekeeping (diff)
downloadavr8js-b2280efa5457685db66d6ce6b156f37d5e678204.tar.gz
avr8js-b2280efa5457685db66d6ce6b156f37d5e678204.tar.bz2
avr8js-b2280efa5457685db66d6ce6b156f37d5e678204.zip
Merge pull request #71 from wokwi/interrupt-refactor
refactor: central interrupt handling #38
Diffstat (limited to 'demo/src/execute.ts')
-rw-r--r--demo/src/execute.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/demo/src/execute.ts b/demo/src/execute.ts
index 40cc996..5d5c6b4 100644
--- a/demo/src/execute.ts
+++ b/demo/src/execute.ts
@@ -50,10 +50,7 @@ export class AVRRunner {
const cyclesToRun = this.cpu.cycles + this.workUnitCycles;
while (this.cpu.cycles < cyclesToRun) {
avrInstruction(this.cpu);
- this.timer0.tick();
- this.timer1.tick();
- this.timer2.tick();
- this.usart.tick();
+ this.cpu.tick();
}
callback(this.cpu);