Skip to content

Commit

Permalink
Leave prologue
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiyou committed Nov 28, 2022
1 parent 211eb94 commit 123895e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
with open(binary_path, "rb") as f:
code = f.read()

# remove prologue
i = 0
for i, byte in enumerate(code):
if byte not in range(0x50, 0x58) and byte != 0x41:
break
code = code[i:]

rem = len(code) % 8
if rem:
code += b"\x00" * (8 - rem)
Expand Down

0 comments on commit 123895e

Please sign in to comment.