Files
SyncHome/trunk/workspace/Plus4Roms/Sandbox/prg2rom.py
2023-03-13 08:36:51 +00:00

16 lines
274 B
Python

import sys
#filename = 'c16.bin'
filename=sys.argv[1]
with open(filename, 'rb') as f:
content = f.read()
g=open (filename+'.crt','wb');
i=2
EOF=len(content)
while i<EOF:
g.write(content[i]);
i=i+1
f.close;
g.close;
print filename+' to .crt converted.'