Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/fixtures/fib.om # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / fixtures / fib.om` 29 lines ยท 429 bytes Raw Blame History 1 note recursive fib(n) for n = 0 .. 25, one number per line 2 global out uchar 32 3 fn fib n ulong to ulong 4 if lt n 2 5 ret n 6 end 7 a = fib sub n 1 8 b = fib sub n 2 9 ret add a b 10 end 11 fn putnum v ulong to void 12 put out 31 10 13 p = ulong 31 14 x = v 15 while gt x 9 16 p = sub p 1 17 put out p uchar add rem x 10 48 18 x = div x 10 19 end 20 p = sub p 1 21 put out p uchar add x 48 22 w = write 1 out p sub 32 p 23 end 24 fn main to int 25 for i ulong 26 26 putnum fib i 27 end 28 ret 0 29 end