diff python/target.py @ 199:a690473b79e2

Added msp430 target
author Windel Bouwman
date Fri, 07 Jun 2013 18:59:57 +0200
parents
children 5e391d9a3381
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/target.py	Fri Jun 07 18:59:57 2013 +0200
@@ -0,0 +1,26 @@
+
+"""
+  Base classes for defining a target
+"""
+
+# Machine code interface:
+class Operand:
+   """ Single machine operand """
+   pass
+
+class Register(Operand):
+    def __init__(self, name):
+        self.name = name
+
+class Instruction:
+   def __init__(self, opcode):
+      self.opcode = opcode
+
+class Target:
+    def __init__(self):
+        self.instructions = []
+    def createInstruction(self, vi):
+        pass
+    pass
+
+