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 / tools / exp445 / arms / examples / rotl8 / program.omegese

7 lines · 99 bytes Raw Blame History
1fn rotl8 x uchar k uchar to uchar
2s = rem k 8
3if eq s 0
4ret x
5end
6ret or shl x s shr x sub 8 s
7end