diff options
| author | Apexo | 2026-04-01 16:30:11 +0200 |
|---|---|---|
| committer | Apexo | 2026-04-01 16:30:13 +0200 |
| commit | 3a0741213e573f96d828c2c044caff23d41f2a9e (patch) | |
| tree | 5e6ad43c35843baf797f1f45bb4d6ec807c2975b /src/util.ts | |
| parent | fix slpctrl (diff) | |
| download | anduril-sim-3a0741213e573f96d828c2c044caff23d41f2a9e.tar.gz anduril-sim-3a0741213e573f96d828c2c044caff23d41f2a9e.tar.bz2 anduril-sim-3a0741213e573f96d828c2c044caff23d41f2a9e.zip | |
improve main loop
- call cpu.tick() first, when we enter the loop; external events (which
may cause an interrupt) can only happen when the loop is not running,
so it makes sense to first check for interrupts before executing
other instructions
- don't go to sleep if an interrupt is pending
Diffstat (limited to 'src/util.ts')
0 files changed, 0 insertions, 0 deletions
