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 / hex / fnmode-hex.om

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