interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / omega-reference / vendor / examples / int_bits_and.om

10 lines · 206 bytes Raw Blame History
1note int_bits_and: and, or, xor on integers are bitwise. 12 is 1100, 10 is 1010, so and gives 1000 = 8
2fn main to int
3x = ulong 12
4y = and x ulong 10
5z = and int 12 int 10
6if ne int y z
7ret 1
8end
9ret z
10end