code wiki / _hdl_build / nx_wasm_mineworld_mod_gate.nx

nx_wasm_mineworld_mod_gate.nx

buildroot/runtime/_hdl_build/nx_wasm_mineworld_mod_gate.nx

5493 B127 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic wasm
docsdependenciesstructsconstsfunctions

about

nx_wasm_mineworld_mod_gate.nx -- gate for BLOCKS-AS-DATA (the first loose-coupling rung of the moddable architecture; operator: games = data-io + logic layers, mods change data, no recompile). T1 the built-in DATA pack lazy-loads and the world renders (frame mostly terrain). T2 a MOD = runtime data records: override grass -> RED via blk_set -> the SAME world re-renders visibly differently (re-skin live, zero recompile) + PNG knowledge/nx_mineworld_mod.png (eyeball: red world). T3 pack reset restores the base pack -> frame BYTE-IDENTICAL to T1 (reversible, deterministic). T4 boundaries: block id 0 / >=MAXBLK REJECTED; an undefined in-range block renders LOUD MAGENTA (never silent). T5 determinism re-render. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_png.nx nx_wasm_mineworld.nx nx_wasm_mineworld_mod_gate.nx

imports: nx_syscalls.nxnx_f32_hw.nxnx_png.nxnx_wasm_mineworld.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap mem_bytes rend terrain_h0 mw_o2 mw_h2 f32_div f32_of build_R m4_roty m4_identity f32_of ↻ f32_neg fratio f32_div ↻ f32_of ↻ f32_neg ↻ m4_rotx m4_identity ↻ f32_neg ↻ m4_mul f32_of ↻ f32_add f32_mul render_at ensure_pack blk_ptr pack_default_at blk_ptr ↻ blk_set blk_ptr ↻ rgb f32_of ↻ m4_vec4 f32_of ↻ f32_add ↻ f32_mul ↻ f32_int f32_mul ↻

structs

none

consts

none

functions

15func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
16func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func fbsum(base: i64) -> i64
called by 1: main calls 3: fb_offwwhh
35func rend(base: i64) -> i64
44func main() -> i64