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-mv/blob/main/bridge/omega-bridge/tests/fixtures/bytecopy.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / bridge / omega-bridge / tests / fixtures / bytecopy.om` 23 lines ยท 412 bytes Raw Blame History 1 note byte copy: read up to 65536 bytes, copy them byte by byte into a second pool reversed, write it 2 global src uchar 65536 3 global dst uchar 65536 4 fn fill to ulong 5 t = ulong 0 6 k = read 0 src 0 len src 7 while gt k 0 8 t = add t ulong k 9 k = long 0 10 if lt t len src 11 k = read 0 src t sub len src t 12 end 13 end 14 ret t 15 end 16 fn main to int 17 n = fill 18 for i ulong n 19 put dst sub sub n i 1 get src i 20 end 21 w = write 1 dst 0 n 22 ret 0 23 end