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/om2/s5/dit-ok.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 / om2 / s5 / dit-ok.om` 36 lines ยท 496 bytes Raw Blame History 1 note S5 dit (OMEGESE 9.13.1): `dit v` sets PSTATE.DIT from v and gives the previous bit. Linux starts a 2 note process with DIT 0. Exit 0 when the sequence 0 -> 1 -> 0 reads back as expected, else the check's number. 3 om2 4 fn main to int 5 a = dit 0 6 if ne a 0 7 ret 1 8 end 9 b = dit 1 10 if ne b 0 11 ret 2 12 end 13 c = dit 0 14 if ne c 1 15 ret 3 16 end 17 d = dit 0 18 if ne d 0 19 ret 4 20 end 21 v = int 1 22 e = dit v 23 f = dit sub v 1 24 if ne add e f 1 25 ret 5 26 end 27 g = add dit 1 dit 1 28 if ne g 1 29 ret 6 30 end 31 h = dit 0 32 if ne h 1 33 ret 7 34 end 35 ret 0 36 end