interplane.Get Omega
Read in your language

spark-connector

aien-dev/spark-connector

Brought by drakestapleton

branch main Branches Tags History

spark-connector / gates / hostile / env.om

20 lines · 389 bytes Raw Blame History
1note hostile probe: print every environment entry and the count
2text m1 "env "
3text nl "\n"
4fn main to int
5b = new uchar 4096 0
6d = new uchar 4 0
7c = envcnt
8for i ulong ulong c bound 4096
9n = envread i b 0 4096
10if gt n 0
11k = write 1 b 0 ulong n
12k = write 1 nl 0 len nl
13end
14end
15k = write 1 m1 0 len m1
16put d 0 uchar add 48 rem ulong c 10
17k = write 1 d 0 1
18k = write 1 nl 0 len nl
19ret 0
20end