diff python/testasm.py @ 238:90637d1bbfad

Added test sequence 2
author Windel Bouwman
date Sat, 20 Jul 2013 13:18:04 +0200
parents 81752b0f85a5
children 6ed3d3a82a63
line wrap: on
line diff
--- a/python/testasm.py	Wed Jul 17 22:31:54 2013 +0200
+++ b/python/testasm.py	Sat Jul 20 13:18:04 2013 +0200
@@ -257,6 +257,20 @@
         self.feed('loop: add r6, r4, 7')
         self.feed('cmp r6, 5')
         self.check('0325 2c1c e61d 052e')
+    def testSequence2(self):
+        self.feed('henkie:')
+        self.feed('push {r1,r4,r5}')
+        self.feed('add r5, r2, r4')
+        self.feed('cmp r4, r2')
+        self.feed('ldr r0, [sp + 4]')
+        self.feed('str r3, [sp + 16]')
+        self.feed('pop {r1, r4, r5}')
+        self.feed('lsl r3, r4')
+        self.feed('cmp r3, r5')
+        self.feed('beq henkie')
+        self.feed('bne henkie')
+        self.feed('b henkie')
+        self.check('32b41519 94420198 049332bc a340ab42 f6d0f5d1 f4e7')
 
 if __name__ == '__main__':
     #cProfile.run('unittest.main()')