code wiki / _hdl_build / _eoe_probe3.nx
_eoe_probe3.nx source
↩ module page · 22 lines · 527 B
1// GENERATED BY nx_eoe (emitter-of-emitters) -- control flow synthesized from a DATA spec, compiled by nx_cc. license_tier: ORIGINAL
2import "nx_syscalls.nx"
3func main() -> i64 {
4 var acc: i64 = 0
5 var i0: i64 = 1
6 while i0 <= 5 {
7 var i1: i64 = 1
8 while i1 <= 5 {
9 var i2: i64 = 1
10 while i2 <= 5 {
11 acc = acc + i0 * i1 * i2
12 i2 = i2 + 1
13 }
14 i1 = i1 + 1
15 }
16 i0 = i0 + 1
17 }
18 let b: *u8 = sys_mmap(8)
19 b[0] = (acc & 0xff) as u8
20 sys_write(1, b, 1)
21 return 0
22}