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/hex/fnmode-hex.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 / hex / fnmode-hex.om` 17 lines ยท 461 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note spec/omegese-om2.md section 2 lines 53-58 (#745): function mode (no fn main) with hex in a const, new length 3 note and fill, index, while bound and trap code; fnmode-dec.om is the decimal spelling: same bytes. 4 om2 5 const KM ulong 0xff 6 fn f a ulong to ulong 7 b = new uchar 0x10 0x0 8 put b 0xf uchar and a KM 9 k = ulong 0x0 10 while lt k 0x3 bound 0xa 11 k = add k 0x1 12 end 13 if eq k 0x0 14 trap 0xd 15 end 16 ret add ulong get b 0xf k 17 end