diff python/testasm.py @ 232:e621e3ba78d2

Added left shift instruction
author Windel Bouwman
date Sun, 14 Jul 2013 11:50:58 +0200
parents 5af52987f5bd
children 83781bd10fdb
line wrap: on
line diff
--- a/python/testasm.py	Sat Jul 13 20:20:44 2013 +0200
+++ b/python/testasm.py	Sun Jul 14 11:50:58 2013 +0200
@@ -158,7 +158,7 @@
 
     def check(self, hexstr):
         self.assertSequenceEqual(bytes.fromhex(hexstr), self.a.binout)
-        
+
     def testMapOperand(self):
         pass
 
@@ -198,6 +198,10 @@
         self.feed('cmp r0, r1')
         self.check('8842')
 
+    def testLeftShit(self):
+        self.feed('lsl r3, r5')
+        self.check('ab40')
+
     def testSequence1(self):
         self.feed('mov r5, 3')
         self.feed('add r4, r5, 0')