Added header.
h3rald h3rald@h3rald.com
Mon, 01 Dec 2025 09:47:49 +0100
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
xywasm.c
→
xywasm.c
@@ -83,11 +83,11 @@
// Tracks whether we are inside a directive or not static unsigned int directive = 0; -// Bytecode to be written -xyw_byte data[0xffff]; +// Bytecode to be written, including header +xyw_byte data[0xffff] = { (xyw_byte)0xFA, (xyw_byte)'x', (xyw_byte)'y', (xyw_byte)'w', (xyw_byte)0x00, (xyw_byte)0xAF }; -// Current write pointer -xyw_word ptr = 0x0000; +// Current write pointer starts after header +xyw_word ptr = 6; // Flat single-string "dictionary" for symbols (macros and labels) // Actually following Uxn design here ;)