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 / bridge / omega-bridge / tests / native / v2 / fsout.om

10 lines · 302 bytes Raw Blame History
1note fsout.om: an out parameter written before a trap. Freestanding ABI v2 copies the out buffer back
2note only on status 0, so after the trap the caller's buffer must hold what it held before the call.
3om2
4export fn fsout x ulong o out uchar 16 to ulong
5put o 0 7
6if eq x 0
7trap 5
8end
9ret add x 1
10end