Make terminal xHEAD and xTAIL registers 32 bits

This enables waiting on them with memory.atomic.wait32 (there is no
wait8) which is needed to avoid spinning when waiting for a key.
This commit is contained in:
2026-03-02 18:51:42 +00:00
parent 22e477adf7
commit 2a3949e09f
4 changed files with 34 additions and 30 deletions

16
emu.js
View File

@@ -1,14 +1,14 @@
const TXBUF = 0;
const RXBUF = 32;
const TXHEAD = 64;
const TXTAIL = 65;
const RXHEAD = 66;
const RXTAIL = 67;
const SYSREADY = 68;
const TXBUF = 0x00;
const RXBUF = 0x20;
const TXHEAD = 0x40;
const TXTAIL = 0x44;
const RXHEAD = 0x48;
const RXTAIL = 0x4c;
const SYSREADY = 0x50;
const TXBUF_SIZE = 32;
const RXBUF_SIZE = 32;
const PERIPHS_SIZE = 69; // Nice
const PERIPHS_SIZE = 81;
const POLL_INTERVAL_MS = 20;