diff python/testasm.py @ 276:56d37ed4b4d2

phaa
author Windel Bouwman
date Mon, 16 Sep 2013 21:51:17 +0200
parents 6f2423df0675
children 046017431c6a
line wrap: on
line diff
--- a/python/testasm.py	Sat Sep 14 17:29:10 2013 +0200
+++ b/python/testasm.py	Mon Sep 16 21:51:17 2013 +0200
@@ -261,16 +261,29 @@
         self.feed('cmp r0, r1')
         self.check('8842')
 
-    def testLeftShit(self):
+    def testAddimm3(self):
+        self.feed('add r3, r5, 2')
+        self.feed('add r4, r1, 6')
+        self.check('ab1c8c1d')
+
+    def testSubImm3(self):
+        self.feed('sub r3, r5, 2')
+        self.feed('sub r4, r1, 6')
+        self.check('ab1e8c1f')
+
+    def testLeftShift(self):
         self.feed('lsl r3, r5')
         self.check('ab40')
 
-    def testModSp(self):
+    def testAddSp(self):
         self.feed('add sp,sp,8')
         self.feed('add sp,sp,16')
+        self.check('02b004b0')
+
+    def testSubSp(self):
         self.feed('sub sp,sp,32')
         self.feed('sub sp,sp,4')
-        self.check('02b004b0 88b081b0')
+        self.check('88b081b0')
 
     def testSequence1(self):
         self.feed('mov r5, 3')