8 wordlen
= int(sys
.argv
[2]) // 8
12 with
open(sys
.argv
[1], "rb") as f
:
14 word
= f
.read(wordlen
)
16 print("%016x" % struct
.unpack('<Q', word
));
19 print("00000000%08x" % struct
.unpack('<I', word
));
21 print("%08x" % struct
.unpack('<I', word
));
25 raise Exception("Bad length %d" % (len(word
)))