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 / s4 / v-text-empty-write.om

9 lines · 296 bytes Raw Blame History
1note S4 empty text: write 1 e 0 1 asks for one byte of `text e ""`; n <= len fails, trap 3 before the
2note call (exit 103, nothing written). x = 7 is live in the register the old lowering read as the count.
3om2
4text e ""
5fn main to int
6x = ulong 7
7n = write int 1 e ulong 0 ulong 1
8ret int x
9end