code wiki / (root) / nx_chip8_font_gate.nx

nx_chip8_font_gate.nx

buildroot/runtime/nx_chip8_font_gate.nx

3423 B69 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic chip8
docsdependenciesstructsconstsfunctions

about

nx_chip8_font_gate.nx -- proves the CHIP-8 fontset + FX29 (set I = digit*5) + drawing a font glyph. Program: V0=0xA, FX29 -> I=50, draw 5 rows at (0,0) -> the 'A' glyph (F0 90 F0 90 90). Checks I and pixels.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_chip8.nx nx_gate_verdict.nx nx_chip8_font_gate.nx

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

main g_puts sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ch8_reset ch8_load_font ch8_fw ch8_load ch8_step ch8_rand g_check g_puts ↻ ch8_geti ch8_pixel g_pn sys_mmap ↻ sys_write ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts

structs

none

consts

none

functions

7func 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 }
called by 2: g_checkmain calls 1: sys_write
8func g_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
22func g_check(name: *u8, cond: i64) -> i64
called by 1: main calls 1: g_puts
28func main() -> i64