comparison python/testasm.py @ 234:83781bd10fdb

wip
author Windel Bouwman
date Sun, 14 Jul 2013 19:29:21 +0200
parents e621e3ba78d2
children 8786811a5a59
comparison
equal deleted inserted replaced
233:d3dccf12ca88 234:83781bd10fdb
192 192
193 def testStrSpRel(self): 193 def testStrSpRel(self):
194 self.feed('str r0, [sp + 4]') 194 self.feed('str r0, [sp + 4]')
195 self.check('0190') 195 self.check('0190')
196 196
197 def testLdrPcRel(self):
198 self.feed('ldr r1, henkie')
199 self.feed('dcd 1')
200 self.feed('henkie: dcd 2')
201 self.check('04490100000002000000')
202
197 def testCmpRegReg(self): 203 def testCmpRegReg(self):
198 self.feed('cmp r0, r1') 204 self.feed('cmp r0, r1')
199 self.check('8842') 205 self.check('8842')
200 206
201 def testLeftShit(self): 207 def testLeftShit(self):