code wiki / _hdl_build / nx_t_vardiv.nx
nx_t_vardiv.nx
buildroot/runtime/_hdl_build/nx_t_vardiv.nx
about
nx_t_vardiv.nx -- disambiguate idiv-on-VARIABLE vs the loop. Loads 42 from memory
(so the compiler can't constant-fold the divide), divides by 10, prints -- NO loop.
Expect "42". Works => runtime idiv is fine, the defect is the LOOP. Fails => nxasm
mis-encodes idiv when the dividend is a runtime register. 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 |