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
omega-mv / seed / omc / sites / found-xefival-1.om
| 1 | target x86efi |
| 2 | note gate 7: write \X.TXT and return from main without efi 12 sub 4; the exit must flush and close. |
| 3 | global pa uchar 8 |
| 4 | global db uchar 16 |
| 5 | |
| 6 | fn main to ulong |
| 7 | put pa 0 92 |
| 8 | put pa 1 88 |
| 9 | put pa 2 46 |
| 10 | put pa 3 84 |
| 11 | put pa 4 88 |
| 12 | put pa 5 84 |
| 13 | i = ulong 0 |
| 14 | while lt i 10 |
| 15 | put db i uchar add 65 i |
| 16 | i = add i 1 |
| 17 | end |
| 18 | r = efi 65536 65281 pa 0 6 |
| 19 | w = efi 12 65283 db 0 10 |
| 20 | ret or r sub w 10 |
| 21 | end |