Adding finer-grained instruction classification.

This commit is contained in:
Ben Vanik
2015-12-29 11:02:00 -08:00
parent cc72de0f64
commit 214957da3a
7 changed files with 440 additions and 454 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,10 +20,6 @@ from xml.etree.ElementTree import ElementTree, Element, SubElement, tostring, du
self_path = os.path.dirname(os.path.abspath(__file__))
class Insn:
pass
def bit_extract(x, leftmost, rightmost):
return (x >> (32 - 1 - rightmost)) & ((1 << (rightmost - leftmost + 1)) - 1)
@@ -74,6 +70,10 @@ def opcode_extended(insn, form):
return -1
class Insn:
pass
def parse_insns(filename):
root = ElementTree(file = filename)
insns = []