Initial build.

This commit is contained in:
Alexander Petrov
2025-09-13 16:40:54 +03:00
parent 30310cd117
commit 7bb83a2b5b
48 changed files with 581792 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
f = open("rom.bin", "rb")
o = open("rom-out-rev0.3.bin", "wb")
i = 0
while i < 16*1024:
f.seek(i)
r = f.read(1)
e = ((r[0]&1)<<7)+((r[0]&2)<<5)+((r[0]&4)<<3)+((r[0]&8)<<1)+((r[0]&16)>>1)+((r[0]&32)>>3)+((r[0]&64)>>5)+((r[0]&128)>>7)
u = int.to_bytes(e, byteorder="big", length=1)
o.write(u)
f.seek(i+16*1024)
r = f.read(1)
e = ((r[0]&1)<<7)+((r[0]&2)<<5)+((r[0]&4)<<3)+((r[0]&8)<<1)+((r[0]&16)>>1)+((r[0]&32)>>3)+((r[0]&64)>>5)+((r[0]&128)>>7)
u = int.to_bytes(e, byteorder="big", length=1)
o.write(u)
i=i+1
o.close()
f.close()
Binary file not shown.
BIN
View File
Binary file not shown.