code wiki / (root) / nx_browser_demo_42.nx

nx_browser_demo_42.nx

buildroot/runtime/nx_browser_demo_42.nx

1544 B49 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind sketch/demotopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_demo_42.nx -- visible end-to-end demo program. Paints "42" into a 24x10 framebuffer, dumps it to stdout as ASCII art, returns 0 on success. Run via qemu-riscv64 to SEE the bits-up substrate's first text-rendering output. Pipeline used: nx_framebuffer_init -- caller-supplied pixel buffer wrap nx_framebuffer_clear -- zero nx_paint_text -- 5x7 glyph rasterizer nx_paint_fb_ascii_dump -- pixel -> char bucket dump sys_write (fd 1) -- to stdout

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_paint_text.nx nx_paint_fb_ascii_dump.nx nx_browser_demo_42.nx

imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_paint_text.nxnx_paint_fb_ascii_dump.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 nx_framebuffer_init nx_framebuffer_clear _put_byte nx_paint_text _paint_text_glyph nx_font_5x7_glyph_row _paint_text_pixel nx_paint_fb_ascii_dump _fb_ascii_char_for_pixel sys_write

structs

none

consts

none

functions

19func _put_byte(buf: *u8, i: i64, v: i64) -> i64
called by 1: main
24func main() -> i64