Research
This commit is contained in:
parent
28cbbe3470
commit
a9153546ae
56 changed files with 6731 additions and 258 deletions
10
tools/find_cd_bytes2.py
Normal file
10
tools/find_cd_bytes2.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import sys
|
||||
fname = sys.argv[1]
|
||||
start = int(sys.argv[2], 0)
|
||||
length = int(sys.argv[3], 0)
|
||||
with open(fname, 'rb') as f:
|
||||
f.seek(start)
|
||||
d = f.read(length)
|
||||
for i, b in enumerate(d):
|
||||
if b in (0x0c, 0x0d):
|
||||
print(hex(0x80000000 + start + i), hex(start + i), hex(b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue