code wiki / _hdl_build / nx_game_pong_gate.nx
nx_game_pong_gate.nx
buildroot/runtime/_hdl_build/nx_game_pong_gate.nx
dependencies 5 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_game_raster.nxnx_png.nxnx_syscalls.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
| 15 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 17 | func p_abs(v: i64) -> i64 { if v<0 { return 0-v } return v } called by 1: pong_tick |
| 18 | func p_clamp(v: i64, lo: i64, hi: i64) -> i64 { if v<lo {return lo} if v>hi {return hi} return v } |
| 21 | func pong_reset(s: *i64, dir: i64) -> i64 { s[0]=70; s[1]=48; s[2]=dir*2; s[3]=1; return 0 } |
| 22 | func pong_full_reset(s: *i64) -> i64 { pong_reset(s, 1); s[4]=12; s[5]=12; s[6]=0; s[7]=0; return 0 } |
| 23 | func pong_tick(s: *i64, w: i64, h: i64, padh: i64, ltrack: i64, rtrack: i64) -> i64 |
| 36 | func pong_render(fb: *i64, w: i64, h: i64, padh: i64, s: *i64) -> i64 |
| 46 | func main() -> i64 |