code wiki / _hdl_build / nx_chip8_page.nx
nx_chip8_page.nx
buildroot/runtime/_hdl_build/nx_chip8_page.nx
about
nx_chip8_page.nx -- R0.4 emit a self-contained PLAYABLE CHIP-8 page. Fork-compiles nx_chip8.nx -> wasm
(sovereign pipeline), base64-embeds it (sovereign nx_base64), and authors web_assets/chip8.html: a canvas
that loads the wasm, drives reset->load->run_frame, blits the 64x32 framebuffer, and maps a CHIP-8 keypad.
The embedded demo program is OUR OWN sovereign CHIP-8 code (a smiley sprite) -> zero IP question. Page is
LOCAL until the login wall (R0.1) gates /play. NISHI all the way (forks sovereign sub-ELFs, no .sh). license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_base64.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const CWAT_ELF: *u8 = "/tmp/nx_compile_wat.sov.elf" |
| 10 | const WATC_ELF: *u8 = "/tmp/nx_wat_compiler.sov.elf" |
| 11 | const SRC_NX: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_chip8.nx" |
| 12 | const WAT_TMP: *u8 = "/tmp/ch8.wat" |
| 13 | const WASM_OUT: *u8 = "web_assets/ch8.wasm" |
| 14 | const HTML_OUT: *u8 = "web_assets/chip8.html" |
| 15 | const CAP: i64 = 262144 |
functions
| 17 | func run_elf(elf: *u8, a1: *u8, a2: *u8) -> i64 |
| 36 | func cat(dst: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 43 | func main() -> i64 |