Mercurial > lcfOS
comparison test/testarmasm.py @ 348:442fb043d149
Added log option to zcc
author | Windel Bouwman |
---|---|
date | Sat, 08 Mar 2014 15:32:33 +0100 |
parents | 3bb7dcfe5529 |
children | 13a6e73b448f |
comparison
equal
deleted
inserted
replaced
346:3bb7dcfe5529 | 348:442fb043d149 |
---|---|
12 """ ARM-mode (not thumb-mode) instruction assembly test case """ | 12 """ ARM-mode (not thumb-mode) instruction assembly test case """ |
13 def setUp(self): | 13 def setUp(self): |
14 self.t = arm_target | 14 self.t = arm_target |
15 self.obj = ObjectFile() | 15 self.obj = ObjectFile() |
16 self.ostream = BinaryOutputStream(self.obj) | 16 self.ostream = BinaryOutputStream(self.obj) |
17 self.ostream.selectSection('.text') | 17 self.ostream.select_section('.text') |
18 self.a = a #Assembler(target=self.t) | 18 self.a = a #Assembler(target=self.t) |
19 | 19 |
20 def testMovImm(self): | 20 def testMovImm(self): |
21 self.feed('mov r4, 100') | 21 self.feed('mov r4, 100') |
22 self.check('6440a0e3') | 22 self.check('6440a0e3') |