+"""POWER Program
+
+takes powerpc assembly instructions and turns them into LE/BE binary
+data. calls powerpc64-linux-gnu-as, ld and objcopy to do so.
+"""
+
import tempfile
import subprocess
import struct
def _assemble(self):
with tempfile.NamedTemporaryFile(suffix=".o") as outfile:
args = ["powerpc64-linux-gnu-as",
+ '-mpower9',
obj_fmt,
"-o",
outfile.name]