Mercurial > lcfOS
comparison test/testarmasm.py @ 356:52492b304adf
Added newline to print
author | Windel Bouwman |
---|---|
date | Fri, 14 Mar 2014 13:02:16 +0100 |
parents | 5477e499b039 |
children | c05ab629976a |
comparison
equal
deleted
inserted
replaced
355:c2ddc8a36f5e | 356:52492b304adf |
---|---|
39 | 39 |
40 def testSub2(self): | 40 def testSub2(self): |
41 self.feed('sub r0, r1, 0x80000001') | 41 self.feed('sub r0, r1, 0x80000001') |
42 self.check('060141e2') | 42 self.check('060141e2') |
43 | 43 |
44 def testAnd1(self): | |
45 self.feed('and r9, r0, r2') | |
46 self.feed('and r4, r8, r6') | |
47 self.check('029000e0 064008e0') | |
48 | |
44 def testOrr1(self): | 49 def testOrr1(self): |
45 self.feed('orr r8, r7, r6') | 50 self.feed('orr r8, r7, r6') |
46 self.check('068087e1') | 51 self.check('068087e1') |
52 | |
53 def testLsl(self): | |
54 self.feed('lsl r11, r5, r3') | |
55 self.feed('lsl r4, r8, r6') | |
56 self.check('15b3a0e1 1846a0e1') | |
57 | |
58 def testLsr(self): | |
59 self.feed('lsr r9, r0, r2') | |
60 self.feed('lsr r4, r8, r6') | |
61 self.check('3092a0e1 3846a0e1') | |
47 | 62 |
48 def testBranches(self): | 63 def testBranches(self): |
49 self.feed('b sjakie') | 64 self.feed('b sjakie') |
50 self.feed('ble sjakie') | 65 self.feed('ble sjakie') |
51 self.feed('bgt sjakie') | 66 self.feed('bgt sjakie') |