diff python/target.py @ 236:8786811a5a59

Fix pcrel
author Windel Bouwman
date Mon, 15 Jul 2013 20:15:31 +0200
parents ff40407c0240
children e41e4109addd
line wrap: on
line diff
--- a/python/target.py	Mon Jul 15 17:20:37 2013 +0200
+++ b/python/target.py	Mon Jul 15 20:15:31 2013 +0200
@@ -152,6 +152,9 @@
         """ Map ast tree to real instruction for this target """
 
         # map to real operands:
+        if vi.mnemonic.upper() == 'ALIGN' and len(vi.operands) == 1:
+            if type(vi.operands[0]) == ANumber:
+                return Alignment(vi.operands[0].number)
 
         # look for a suitable instruction
         for ic in self.instructions: