diff python/x86.py @ 178:c694ec551f34

Added lex yacc test scripts
author Windel Bouwman
date Sat, 04 May 2013 12:07:17 +0200
parents 460db5669efa
children 25a0753da4cf
line wrap: on
line diff
--- a/python/x86.py	Mon Apr 22 23:54:54 2013 +0200
+++ b/python/x86.py	Sat May 04 12:07:17 2013 +0200
@@ -58,6 +58,17 @@
       print(dag.mapping)
       bb.dag = dag
 
+# Machine code interface:
+class MachineOperand:
+   """ Single machine operand """
+   pass
+
+class MachineInstruction:
+   def __init__(self, opcode):
+      self.opcode = opcode
+      self.operands = []
+
+
 # x86 specific:
 class AsmLabel:
    def __init__(self, lab):