Skip to content

Commit

Permalink
change linux 64bit vdappc to 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMKW committed Nov 6, 2020
1 parent d39cd22 commit c320b14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file modified lib/linux_x86_64/vdappc
Binary file not shown.
6 changes: 2 additions & 4 deletions ppctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ def asm_opcodes(self, tmpdir: str, txtfile: str=None) -> str:
with open(txtfile, "r") as asmfile:
asm = ".include \"__includes.s\"\n\n" + "\n".join([self.sanitize_opcodes(line) for line in asmfile if ".include \"__includes.s\"" not in line]) + "\n"

print(asm)

with open(txtfile, "w") as asmfile:
asmfile.write(asm)

Expand Down Expand Up @@ -234,8 +232,8 @@ def _format_opcodes(opcodes: str) -> str:
ppcPattern = re.compile(r"([a-fA-F0-9]+)(?:\: )([a-fA-F0-9]+)(?:\s+)([a-zA-Z.+-_]+)(?:[ \t]+|)([-\w,()]+|)")
branchLabel = ".loc_0x{:X}:"
unsignedInstructions = ("lis", "ori", "oris", "xori", "xoris", "andi.", "andis.")
nonhexInstructions = ("rlwinm", "rlwinm.", "rlwnm", "rlwnm.", "rlwimi", "rlwimi.", "crclr", "crxor",
"cror", "crorc", "crand", "crnand", "crandc", "crnor", "creqv", "crse", "crnot", "crmove")
'''nonhexInstructions = ("rlwinm", "rlwinm.", "rlwnm", "rlwnm.", "rlwimi", "rlwimi.", "crclr", "crxor",
"cror", "crorc", "crand", "crnand", "crandc", "crnor", "creqv", "crse", "crnot", "crmove")'''
pairedSingleLoadStores = ("psq_l", "psq_lu", "psq_st", "psq_stu")

for _ppcOffset, _ppcRaw, _ppcInstruction, _ppcSIMM in re.findall(ppcPattern, opcodes):
Expand Down

0 comments on commit c320b14

Please sign in to comment.