Mercurial > lcfOS
diff 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 |
line wrap: on
line diff
--- a/test/testarmasm.py Sat Mar 08 15:32:33 2014 +0100 +++ b/test/testarmasm.py Sat Mar 08 16:16:41 2014 +0100 @@ -75,6 +75,14 @@ self.feed('ldr r5, [r3, 87]') self.check('575093e5') + def testLdrLabel(self): + self.feed('ldr r5, lab1') + self.feed('ldr r11, lab1') + self.feed('ldr r10, lab1') + self.feed('lab1:') + self.feed('dcd 0x12345566') + self.check('04509fe5 00b09fe5 04a01fe5 66553412') + def testSequence1(self): self.feed('sub r4,r5,23') self.feed('blt x')