code wiki / _hdl_build / nx_asm_oracle.nx
nx_asm_oracle.nx
buildroot/runtime/_hdl_build/nx_asm_oracle.nx
about
nx_asm_oracle.nx -- dumps my sovereign assembler's machine-code words for a fixed instruction sequence, so they can
be diffed against the GNU reference assembler (riscv64-linux-gnu-as) -- an EXTERNAL-ORACLE encoding validation of the
whole RV64IM encoder (esp. the just-added M extension). Prints one hex word per line. expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_g_puts_lib.nxnx_rv64_asm.nxnx_rv64_fast.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
| 9 | func g_ph8(v: i64) -> i64 { let b: *u8=sys_mmap(12); var i: i64=7; while i>=0 { let nib: i64=(v>>(i*4))&15; if nib<10 { b[7-i]=(48+nib) as u8 } else { b[7-i]=(87+nib) as u8 } i=i-1 } b[8]=10 as u8; sys_write(1,b,9); return 0 } |
| 11 | func main() -> i64 |