code wiki / _hdl_build / nx_chip8_page.nx

nx_chip8_page.nx

buildroot/runtime/_hdl_build/nx_chip8_page.nx

7177 B105 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind tooltopic chip8
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_base64.nx nx_chip8_page.nx

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

main run_elf sys_fork sys_mmap sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_write sys_exit ↻ b64_encode b64_enc_char cat sys_openat_wr sys_close ↻

structs

none

consts

9const CWAT_ELF: *u8 = "/tmp/nx_compile_wat.sov.elf"
10const WATC_ELF: *u8 = "/tmp/nx_wat_compiler.sov.elf"
11const SRC_NX: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_chip8.nx"
12const WAT_TMP: *u8 = "/tmp/ch8.wat"
13const WASM_OUT: *u8 = "web_assets/ch8.wasm"
14const HTML_OUT: *u8 = "web_assets/chip8.html"
15const CAP: i64 = 262144

functions

17func run_elf(elf: *u8, a1: *u8, a2: *u8) -> i64
36func cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
43func main() -> i64