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/seed/qualification/om2/sec/s5s7/l5-trap.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 / seed / qualification / om2 / sec / s5s7 / l5-trap.om` 18 lines ยท 448 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note contract 5 layout line 159: the field index is checked like an array index; a run-time index 64 3 note into buf (COUNT 64) traps 3: exit 103, no stdout. 4 om2 5 layout shactx 104 6 field state uint 8 at 0 little 7 field count ulong at 32 little 8 field buf uchar 64 at 40 little 9 end 10 fn poke c edit shactx k ulong to void 11 put c buf k 1 12 end 13 fn main to int 14 c = new uchar 104 0 15 poke c 64 16 w = write 1 c 0 104 17 ret 0 18 end