mirror of
https://github.com/sxpert/hp-saturn
synced 2024-12-27 09:58:16 +01:00
17 lines
No EOL
295 B
Python
Executable file
17 lines
No EOL
295 B
Python
Executable file
#!/usr/bin/env python3
|
|
#
|
|
# licence: GPLv3 or later
|
|
#
|
|
|
|
f = open("../docs/gxrom-r", "rb")
|
|
count=0
|
|
filedata = f.read()
|
|
f.close()
|
|
for b in filedata:
|
|
print("%1x %1x "%(int(b&0x0f),int((b&0xf0)>>4)), end="")
|
|
count += 1
|
|
if count == 8:
|
|
print(end=" ")
|
|
if count == 16:
|
|
print(end="\n")
|
|
count = 0 |