code wiki / _hdl_build / nx_t_idiv.nx
nx_t_idiv.nx
buildroot/runtime/_hdl_build/nx_t_idiv.nx
about
nx_t_idiv.nx -- pinpoint probe: is the nxasm defect in signed div/modulo (idiv)?
No loops, no comparisons -- ONLY one divide + one modulo, printed as two chars.
Expect "42\n" (42/10=4, 42%10=2). Garbage => nxasm mis-encodes idiv (likely the
missing cqo/cqto sign-extend of RAX->RDX before idivq). license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 7 | func main() -> i64 |