Mercurial > lcfOS
comparison test/testarmasm.py @ 349:13a6e73b448f
Added test load from label
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 16:16:41 +0100 |
parents | 442fb043d149 |
children | 899ae3aea803 |
comparison
equal
deleted
inserted
replaced
348:442fb043d149 | 349:13a6e73b448f |
---|---|
73 | 73 |
74 def testLdr(self): | 74 def testLdr(self): |
75 self.feed('ldr r5, [r3, 87]') | 75 self.feed('ldr r5, [r3, 87]') |
76 self.check('575093e5') | 76 self.check('575093e5') |
77 | 77 |
78 def testLdrLabel(self): | |
79 self.feed('ldr r5, lab1') | |
80 self.feed('ldr r11, lab1') | |
81 self.feed('ldr r10, lab1') | |
82 self.feed('lab1:') | |
83 self.feed('dcd 0x12345566') | |
84 self.check('04509fe5 00b09fe5 04a01fe5 66553412') | |
85 | |
78 def testSequence1(self): | 86 def testSequence1(self): |
79 self.feed('sub r4,r5,23') | 87 self.feed('sub r4,r5,23') |
80 self.feed('blt x') | 88 self.feed('blt x') |
81 self.feed('x:') | 89 self.feed('x:') |
82 self.feed('mul r4,r5,r2') | 90 self.feed('mul r4,r5,r2') |