code wiki / _hdl_build / nx_t_vardiv.nx

nx_t_vardiv.nx

buildroot/runtime/_hdl_build/nx_t_vardiv.nx

765 B19 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic t
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_t_vardiv.nx

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

main sys_mmap sys_write sys_exit

structs

none

consts

none

functions

7func main() -> i64