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
omega-mv / seed / omc / om2 / hex / fnmode-hex.om
| 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 |