ZEsarUX13.0 native Spectrum Next browser port — 4 November2026

SOURCE: official release https://github.com/chernandezba/zesarux/releases/tag/ZEsarUX-13.0
ORIGINAL SOURCE ARCHIVE: ZEsarUX_src-13.0.tar.gz, retained unchanged.
LICENSE: upstream GNU GPLv3-or-later. Preserve upstream licenses and notices.

REPRODUCE
Install/activate Emscripten3.1.73, GNUmake/gcc and Python3.
Extract the original source, then patch -p1 < ZESARUX13-WASM.patch.
From that source run: nice -n10 make -j2 CC=emcc zesarux
The generated Makefile's command-line CC override removes the local SDK path.
Outputs: zesarux.js modular factory ZesaruxModule + zesarux.wasm.
No Pthreads, no workers, no blob scripts; browser keeps the genuine Z80N CPU,
Next memory, registers, graphics, keyboard and original emulator rendering.

RUNTIME FLAGS
--noconfigfile --nowelcomemessage --nosplash --disablefooter --realvideo
--vo sdl --ao sdl --machine TBBlue --zoom1 --snap /terminal.nex
Use separate arguments '--zoom','1' in JS. Realvideo is REQUIRED for Tilemap/
Layer2; the classic no-rainbow path only renders ULA.
ROM assets come from the exact upstream release. Application NEX is separate.

WASM ADAPTATIONS
Host animation callback runs bounded native CPU slices; native date timer.
SDL1.2compat fixes unavailable world keycodes, signed8bit mixing, stretch blit,
RGBA byte order, mandatory Lock/Unlock canvas presentation.
UART byte queues65536 each direction, no IAC decoding/filtering in gateway.
Overflow must cause host disconnect; no silent unlimited queues.

EXPORTS
wasm_uart_feed(ptr,n), wasm_uart_take(ptr,n), wasm_uart_reset(),
wasm_uart_overflow(), wasm_native_pc(), wasm_nextreg(index),
wasm_stop(), wasm_set_volume(enabled). malloc/free exported.
The browser page closes WebSocket for real and cancels guest CPU on disconnect.

VERIFIED
Actual unmodified TerminexII1.51 executes under native Linux ZEsarUX and WASM.
Chromium screenshot shows actual native Next80 tilemap, font, colours, cursor.
UART ASCII test renders inside the guest. Physical browser'a' produces TX97.
TTYPE request receives VT100 reply; fragmented unknown option exposes beta's
missing negative negotiation and spurious glyphs. These are limited fixtures,
not a claim of repairing original Terminex or all live BBS negotiations.

NEW QTPI/NEXT APP
Page next80/ uses the same JupiterAce layout and endpoint/ws/next80, port21434.
Its active test-page manifest pins the original TerminexII1.51 NEX.
The rewritten native44-profile terminal is a separate later task.
Do not describe the current Terminex test page as that completed app.

SHARED TS2068 EXTENSION
The same final WASM also contains the optional TS2068 virtual UART adapter,
scoped to TS2068 and enabled explicitly by its page. Next port behavior is
unchanged. Changes are in operaciones.c and wasm_uart.c; source patch includes
them. wasm_stop also closes the SDL audio device on disconnect.
