Mercurial > lcfOS
diff python/testasm.py @ 237:81752b0f85a5
Added burn led test program
author | Windel Bouwman |
---|---|
date | Wed, 17 Jul 2013 22:31:54 +0200 |
parents | 8786811a5a59 |
children | 90637d1bbfad |
line wrap: on
line diff
--- a/python/testasm.py Mon Jul 15 20:15:31 2013 +0200 +++ b/python/testasm.py Wed Jul 17 22:31:54 2013 +0200 @@ -212,11 +212,36 @@ self.check('0190') def testLdrPcRel(self): + self.feed('ldr r7, henkie') + self.feed('ldr r6, henkie') self.feed('ldr r1, henkie') self.feed('align 4') self.feed('dcd 1') self.feed('henkie: dcd 2') - self.check('014900000100000002000000') + self.check('024F024E 01490000 01000000 02000000') + + def testBranch(self): + self.feed('start: b henkie') + self.feed('beq henkie') + self.feed('bne henkie') + self.feed('henkie: b start') + self.feed('eof: b eof') + self.check('01e000d0 ffd1fbe7 fee7') + + def testBoff(self): + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('henkie:') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.feed('b henkie') + self.check('05e004e0 03e002e0 01e000e0 ffe7fee7 fde7fce7 fbe7') def testCmpRegReg(self): self.feed('cmp r0, r1')