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 / tests / arboris / emit-spread.om

22 lines · 495 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2fn main to int
3 code = new uchar 16384 0
4 size = arboris_emit_spread 100000 code
5 if eq argcnt 3
6 size = arboris_emit_relax 100000 code
7 end
8 if eq argcnt 4
9 size = arboris_emit_relax 4096 code
10 end
11 if eq size 0
12 ret 1
13 end
14 if eq argcnt 2
15 note The pinned nvdisasm listing locates the load-dependent FMUL at 0x1f0.
16 put code 0x1fe and get code 0x1fe 15
17 end
18 if ne write 1 code 0 size long size
19 ret 2
20 end
21 ret 0
22end