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

View File

@@ -8,9 +8,9 @@
(global $TXBUF i32 (i32.const 0x0000))
(global $RXBUF i32 (i32.const 0x0020))
(global $TXHEAD i32 (i32.const 0x0040))
(global $TXTAIL i32 (i32.const 0x0041))
(global $RXHEAD i32 (i32.const 0x0042))
(global $RXTAIL i32 (i32.const 0x0043))
(global $TXTAIL i32 (i32.const 0x0044))
(global $RXHEAD i32 (i32.const 0x0048))
(global $RXTAIL i32 (i32.const 0x004c))
;; Forth registers
(global $rsp (mut i32) (i32.const 0))