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/omc/sites/found-xelem-2.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 / omc / sites / found-xelem-2.om` 68 lines ยท 1675 bytes Raw Blame History 1 target x86efi 2 note sites: found by a one-token change of a tracked program (41 to 120 lines); reaches the omc error site in xelem (code 7) 3 note efi 11 with two FAT volumes: the boot stick and a second stick whose \EFI\BOOT\BOOTX64.EFI 4 note holds the 4 bytes "junk". Count the volumes, read the other volume's file (4 bytes), read 5 note this image from the boot volume, write it over the other volume's file, read it back and 6 note compare, then ask for volume 9 (error 19). One character per result: the count, the boot 7 note index, then 1 for each check that held (0 if not), then the low 6 bits of the volume 9 8 note status + 48 (C = 19) and 1 if that status has bit 63 set. 9 global ms uchar 32 10 global Img uchar `2097152` 11 global Back uchar `2097152` 12 13 fn pr n ulong to void 14 r = efi 13 0 ms 0 n 15 end 16 17 fn bit b bool to uchar 18 if b 19 ret uchar 49 20 end 21 ret uchar 48 22 end 23 24 fn main to ulong 25 put ms false 61 26 put ms 1 61 27 put ms 2 66 28 put ms 3 10 29 pr 4 30 r = efi 11 0 Img 0 0 31 n = and r 255 32 boot = and shr r 8 255 33 tgt = ulong 0 34 if eq boot 0 35 tgt = 1 36 end 37 junk = efi 11 or 1 shl tgt 8 Back 0 len Back 38 rd = efi 11 or 1 shl boot 8 Img 0 len Img 39 wr = efi 11 or 2 shl tgt 8 Img 0 rd 40 rb = efi 11 or 1 shl tgt 8 Back 0 len Back 41 same = eq rb rd 42 if same 43 j = ulong 0 44 while lt j rd 45 if ne get Img j get Back j 46 same = false 47 break 48 end 49 j = add j 1 50 end 51 end 52 e = efi 11 ulong 2305 Back 0 len Back 53 put ms 0 uchar add 48 and n 63 54 put ms 1 uchar add 48 and boot 63 55 put ms 2 bit and eq shr r 63 0 eq junk 4 56 put ms 3 bit and eq shr rd 63 0 gt rd 4096 57 put ms 4 bit eq wr rd 58 put ms 5 bit same 59 put ms 6 uchar add 48 and e 63 60 put ms 7 bit eq shr e 63 1 61 put ms 8 10 62 put ms 9 61 63 put ms 10 61 64 put ms 11 69 65 put ms 12 10 66 pr 13 67 ret 0 68 end