Mercurial > lcfOS
diff python/target.py @ 202:f22b431f4113
Added arm add instruction
author | Windel Bouwman |
---|---|
date | Sat, 15 Jun 2013 10:02:50 +0200 |
parents | d5debbfc0200 |
children | ca1ea402f6a1 |
line wrap: on
line diff
--- a/python/target.py Thu Jun 13 00:07:28 2013 +0200 +++ b/python/target.py Sat Jun 15 10:02:50 2013 +0200 @@ -27,9 +27,12 @@ def instruction(self, cls): """ Decorator function that registers an instruction to this target """ - self.instructions.append(cls) + self.addInstruction(cls) return cls + def addInstruction(self, ins_class): + self.instructions.append(ins_class) + def mapOperand(self, operand): """ Try to map an operand to a target type """ if type(operand) is ASymbol: