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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user