interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / omc / om2 / s5 / scrub-pin.om

20 lines · 481 bytes Raw Blame History
1note S5 scrub with OM-2 pinned global registers (pinset/pinlo): scrub clears X18..X26, then sets the
2note pinned base of g and the pinned length of h (5000, above 4095) back, so the reads after it give the
3note stored values. A lost base faults (139) and a lost length traps 3 (103); exit 0 is the pass.
4om2
5global g ulong 10
6global h ulong 5000
7fn main to int
8j = ulong 4999
9put h j 7
10put g 9 5
11k = scrub 64
12y = get h j
13if ne y 7
14ret 2
15end
16if ne get g 9 5
17ret 3
18end
19ret int k
20end