fix: convert asm from CRLF to LF for less bugs

This commit is contained in:
Dobin
2024-02-22 21:03:39 +00:00
parent 9ff677310e
commit b751292134
2 changed files with 22 additions and 10 deletions
+10 -1
View File
@@ -138,4 +138,13 @@ def hexdump(data, addr = 0, num = 0):
line += '%c' % c
lines.append(line)
return '\n'.join(lines)
return '\n'.join(lines)
def file_to_lf(filename):
with open(filename, 'rb') as f:
data = f.read()
data = data.replace(b'\r\n', b'\n')
with open(filename, 'wb') as f:
f.write(data)