code wiki / (root) / smoke_asm_d4.nx

smoke_asm_d4.nx

buildroot/runtime/smoke_asm_d4.nx

657 B16 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

Return raw n (not masked) -- exit code is u8 anyway, but let's see if it matches; also try returning n+100 to detect overflow.

dependencies 2 imports · 0 importers

syscalls.nx nxasm_v2.nx smoke_asm_d4.nx

imports: syscalls.nxnxasm_v2.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main alloc assemble alloc assemble_pass next_tok lex_one is_space asm_is_digit is_hex asm_is_digit ↻ hexv asm_is_alpha skip_to_newline label_define sys_write s_eq5 handle_word expect_int next_tok ↻ emit_u32 next_tok ↻ handle_byte expect_int ↻ emit_byte next_tok ↻ handle_skip expect_int ↻ emit_byte ↻ s_eq6 handle_asciz next_tok ↻ emit_byte ↻ assemble_mnemonic parse_j_label next_tok ↻ sys_write ↻ enc_j label_find label_eq

structs

none

consts

none

functions

6func main() -> i64 {
calls 2: allocassemble