code wiki / _hdl_build / nx_cbz_fixture.nx
nx_cbz_fixture.nx
buildroot/runtime/_hdl_build/nx_cbz_fixture.nx
about
nx_cbz_fixture.nx -- build a tiny DRM-free CBZ (comic = a ZIP of page images) via the sovereign OPC zip writer,
so the comics->.nmz rung can be gated end-to-end (nx_cbx_pages extracts -> nx_nmz_pack packs @kind=comic). The
page bytes start with the JPEG SOI (ff d8) so nx_cbx_pages' no-fake-green magic gate accepts them, and contain
EMBEDDED 0x00 bytes -- proving the binary-safe canon (nx_canon_bin) carries real image bytes that string-only
canon_encode would truncate. expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_opc.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 cf_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: cf_p |
| 10 | func cf_p(s: *u8) -> i64 { sys_write(1, s, cf_slen(s)); return 0 } |
| 11 | func cf_n(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1}; sys_write(1,b,k); return 0 } |
| 12 | func ensure_dir(path: *u8) -> i64 { __syscall(258, 0-100, path, 0x1ed, 0, 0, 0); return 0 } called by 1: main |
| 14 | func main() -> i64 |