diff python/asmnodes.py @ 203:ca1ea402f6a1

Added some arm instructions
author Windel Bouwman
date Sat, 15 Jun 2013 19:13:05 +0200
parents d5debbfc0200
children 6c6bf8890d8a
line wrap: on
line diff
--- a/python/asmnodes.py	Sat Jun 15 10:02:50 2013 +0200
+++ b/python/asmnodes.py	Sat Jun 15 19:13:05 2013 +0200
@@ -12,12 +12,12 @@
         return '{0}:'.format(self.name)
 
 class AInstruction(ANode):
-    def __init__(self, opcode, operands):
-        self.opcode = opcode
+    def __init__(self, mnemonic, operands):
+        self.mnemonic = mnemonic
         self.operands = operands
     def __repr__(self):
         ops = ', '.join(map(str, self.operands))
-        return '{0} {1}'.format(self.opcode, ops)
+        return '{0} {1}'.format(self.mnemonic, ops)
 
 class AExpression(ANode):
     def __add__(self, other):