Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/omc/tests/pools/g4base.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / omc / tests / pools / g4base.om` 34 lines ยท 535 bytes Raw Blame History 1 om2 2 note gate-pools 4 baseline: g4.om without the pool (compiled only, for the pinned register set). 3 global g ulong 10 4 global h ulong 5000 5 global ob uchar 24 6 fn pnum v ulong to void 7 put ob 23 10 8 i = ulong 23 9 x = v 10 go = true 11 while go bound 21 12 i = sub i 1 13 put ob i uchar add rem x 10 48 14 x = div x 10 15 go = ne x 0 16 end 17 k = write 1 ob i sub 24 i 18 end 19 fn plong v long to void 20 if lt v 0 21 put ob 0 uchar 45 22 k = write 1 ob 0 1 23 pnum ulong neg v 24 else 25 pnum ulong v 26 end 27 end 28 fn main to int 29 put g 9 6 30 put h 4999 7 31 pnum get g 9 32 pnum get h 4999 33 ret 0 34 end