code wiki / _hdl_build / nx_rv64_asm_test.nx
nx_rv64_asm_test.nx
buildroot/runtime/_hdl_build/nx_rv64_asm_test.nx
about
nx_rv64_asm_test.nx -- minimal isolation test for the RV64 assembler. Assembles 3 instructions + checks bytes.
expect_exit:0
dependencies 1 imports · 0 importers
imports: nx_rv64_asm.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
| 5 | func t_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 6 | func t_hx(v: i64) -> i64 { t_puts("0x" as *u8); let b: *u8=sys_mmap(16); var i: i64=7; var k: i64=0; while i>=0 { let nib: i64=(v>>(i*4))&15; if nib<10 { b[k]=(48+nib) as u8 } else { b[k]=(87+nib) as u8 } k=k+1; i=i-1 } sys_write(1,b,8); return 0 } |
| 8 | func main() -> i64 |