code wiki / (root) / smoke_asm_b22.nx

smoke_asm_b22.nx

buildroot/runtime/smoke_asm_b22.nx

469 B13 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind smoketopic smoke
docsdependenciesstructsconstsfunctions

about

test22 with li -> mv (so 4 inst, all reg-reg or reg-imm-reg) addi sp, sp, -16 ; sd ra, 8(sp) ; mv a0, t0 ; ret

dependencies 2 imports · 0 importers

syscalls.nx nxasm_v2.nx smoke_asm_b22.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