mirror of
https://github.com/flowenol/apple1cartridge.git
synced 2024-12-26 13:31:15 +00:00
bin2a1monitor.py script fix
This commit is contained in:
parent
012d30fd11
commit
53abc88b83
@ -1,5 +1,4 @@
|
|||||||
import sys
|
import sys
|
||||||
import binascii
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
This utility transforms binary data to A1 monitor format, starting offset
|
This utility transforms binary data to A1 monitor format, starting offset
|
||||||
@ -20,7 +19,7 @@ if __name__ == "__main__":
|
|||||||
byte = file.read(1)
|
byte = file.read(1)
|
||||||
while byte:
|
while byte:
|
||||||
|
|
||||||
row.append(binascii.hexlify(byte).upper())
|
row.append(byte.hex().upper())
|
||||||
if len(row) == 8:
|
if len(row) == 8:
|
||||||
print_row(row_offset, row)
|
print_row(row_offset, row)
|
||||||
row = list()
|
row = list()
|
||||||
|
Loading…
Reference in New Issue
Block a user