1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 03:34:05 +00:00
8bitworkshop/tools/nes2sms.py

12 lines
237 B
Python
Raw Normal View History

2019-08-06 22:52:52 +00:00
import sys
chr = open(sys.argv[1],'rb').read()
out = open('outsms.bin','wb')
for i in range(0,len(chr),16):
for y in range(0,8):
arr = [ ord(chr[i+y]), ord(chr[i+8+y]), 0, 0 ]
out.write(bytearray(arr))
out.close()