nx_chip8_gate.nx
buildroot/runtime/nx_chip8_gate.nx
about
nx_chip8_gate.nx -- NATIVE correctness gate for nx_chip8 (R0.3). Runs a hand-assembled program that
exercises set/add/add-with-carry/set-I and two DXYN sprite draws (draw then redraw -> XOR clears +
collision flag), and checks registers, the carry flag, the framebuffer, and collision. Proves the CPU +
display logic; the same base-relative core then compiles to wasm for in-VM + browser verification.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_chip8.nxnx_gate_verdict.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
| none |
functions
| 9 | func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 10 | func g_pn(v: i64) -> i64 |
| 24 | func g_check(name: *u8, cond: i64) -> i64 |
| 30 | func main() -> i64 |