diff python/testasm.py @ 212:62386bcee1ba

Added parser combinator lib
author Windel Bouwman
date Sun, 30 Jun 2013 19:00:41 +0200
parents 8b2f20aae086
children 494828a7adf1
line wrap: on
line diff
--- a/python/testasm.py	Sat Jun 29 10:10:45 2013 +0200
+++ b/python/testasm.py	Sun Jun 30 19:00:41 2013 +0200
@@ -178,6 +178,14 @@
         self.feed('pop {r4-r6, pc}')
         self.check('70bd')
 
+    def testStr5(self):
+        self.feed('str r4, [r1 + 0]')
+        self.check('0c60')
+
+    def testLdr5(self):
+        self.feed('ldr r4, [r0 + 0]')
+        self.check('0468')
+
     def testSequence1(self):
         self.feed('mov r5, 3')
         self.feed('add r4, r5, 0')