diff python/cortexm3.py @ 232:e621e3ba78d2

Added left shift instruction
author Windel Bouwman
date Sun, 14 Jul 2013 11:50:58 +0200
parents 1c7364bd74c7
children 83781bd10fdb
line wrap: on
line diff
--- a/python/cortexm3.py	Sat Jul 13 20:20:44 2013 +0200
+++ b/python/cortexm3.py	Sun Jul 14 11:50:58 2013 +0200
@@ -278,7 +278,7 @@
         return u16(h)
 
     def __repr__(self):
-        return 'LDR {}, [pc,#{}]'.format(self.rt, self.offset)
+        return 'LDR {}, {}'.format(self.rt, self.label.name)
 
 @armtarget.instruction
 class ldr_sprel(ls_sp_base_imm8):
@@ -311,7 +311,8 @@
         return u16(h)
     def __repr__(self):
         return 'MOV {0}, xx?'.format(self.r)
-        
+
+
 @armtarget.instruction
 class movregreg_ins(ArmInstruction):
     """ mov Rd, Rm """
@@ -410,6 +411,11 @@
     opcode = 0b0100001010
 
 @armtarget.instruction
+class lslregs_ins(regreg_base):
+    mnemonic = 'LSL'
+    opcode = 0b0100000010
+
+@armtarget.instruction
 class cmpregimm8_ins(ArmInstruction):
     """ cmp Rn, imm8 """
     mnemonic = 'cmp'