view 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 source


"""
  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