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/fnhost/x86-dev.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 / fnhost / x86-dev.om` 52 lines ยท 1128 bytes Raw Blame History 1 target x86linux 2 note dev.om: an OM-2 function unit (no fn main) using every function-mode clock and device word: 3 note monons realns sleepns, devctl devcall uvmctl, mapnew mapaddr mapset mapget mapwrite mapread mapdrop, 4 note with cpufence between the payload and the doorbell. The mapping words find their table through 5 note runtime-table entry 31 (seed/host/MAPPING.md, function mode); the exact code is pinned by sha256. 6 om2 7 fn clk to long 8 a = monons 9 s = sleepns long 1000 10 b = monons 11 r = realns 12 if lt s 0 13 ret s 14 end 15 if lt r 0 16 ret r 17 end 18 ret sub b a 19 end 20 fn dev fd int to long 21 b = new uchar 48 0 22 r = devctl fd uint 21531 b 0 4 23 if lt r 0 24 ret r 25 end 26 r = devctl fd uint `3224389163` b 0 48 27 hd = new uchar 32 0 28 pa = new uchar 16 0 29 k = devcall fd uint `3223340587` hd 0 32 pa 0 16 30 u = uvmctl fd uint 75 b 0 8 31 ret add add r k u 32 end 33 fn ring v ulong to long 34 h = mapnew neg int 1 0 4096 3 34 35 if lt h 0 36 ret h 37 end 38 p = new uchar 16 7 39 a = mapaddr h 40 w = mapwrite h 16 p 0 16 41 cpufence 42 d = mapset h 8 8 v 43 d = mapset h 0 4 1 44 x = long mapget h 8 8 45 q = new uchar 16 0 46 n = mapread h 16 q 0 16 47 z = mapdrop h 48 if eq a 0 49 ret -1 50 end 51 ret add x long get q 15 52 end