code wiki / (root) / smoke_asm_d5.nx

smoke_asm_d5.nx

buildroot/runtime/smoke_asm_d5.nx

1197 B39 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

Reach into Asm to see pass 1 cur_addr vs pass 2 out_pos. Returns cur_addr at end of pass 1 (before pass 2 runs) minus the public 'n' from pass 2. If they match -> bug is not pass-1/pass-2 divergence.

dependencies 2 imports · 0 importers

syscalls.nx nxasm_v2.nx smoke_asm_d5.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_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 sys_mmap s_eq2

structs

none

consts

none

functions

9func main() -> i64 {