diff python/ppci/target/arm/__init__.py @ 357:818be710e13d

Added acceptance function to burg
author Windel Bouwman
date Fri, 14 Mar 2014 15:14:29 +0100
parents 52492b304adf
children b4ac28efcdf4
line wrap: on
line diff
--- a/python/ppci/target/arm/__init__.py	Fri Mar 14 13:02:16 2014 +0100
+++ b/python/ppci/target/arm/__init__.py	Fri Mar 14 15:14:29 2014 +0100
@@ -4,7 +4,7 @@
 from ..arm.registers import R8, R9, R10, R11, R12, SP, LR, PC
 from ..arm.registers import register_range
 
-from .instructions import Dcd, Mov, Add, Sub, Orr1, Mul, Mov2, Add1, Mul1
+from .instructions import Dcd, Mov, Mov1, Add, Sub, Orr1, Mul, Mov2, Add1, Mul1
 from .instructions import Lsr1, Lsl1, And1, Sub1
 from .instructions import B, Bl, Ble, Bgt, Beq, Blt, Cmp, Cmp2
 from .instructions import Push, Pop, Str, Ldr, Ldr3, Str1, Ldr1, Adr
@@ -29,6 +29,7 @@
         self.add_lowering(Mul1, lambda im: Mul1(im.dst[0], im.src[0], im.src[1]))
         self.add_lowering(Lsr1, lambda im: Lsr1(im.dst[0], im.src[0], im.src[1]))
         self.add_lowering(And1, lambda im: And1(im.dst[0], im.src[0], im.src[1]))
+        self.add_lowering(Mov1, lambda im: Mov1(im.dst[0], im.others[0]))
 
     def make_parser(self):
         # Assembly grammar: