Mercurial > lcfOS
comparison test/testmsp430asm.py @ 383:173e20a47fda
Added linker description loader
author | Windel Bouwman |
---|---|
date | Sun, 27 Apr 2014 17:40:39 +0200 |
parents | 6df89163e114 |
children | d056b552d3f4 |
comparison
equal
deleted
inserted
replaced
382:0c44e494ef58 | 383:173e20a47fda |
---|---|
10 class Msp430AssemblerTestCase(AsmTestCaseBase): | 10 class Msp430AssemblerTestCase(AsmTestCaseBase): |
11 def setUp(self): | 11 def setUp(self): |
12 self.t = msp430target | 12 self.t = msp430target |
13 self.obj = ObjectFile() | 13 self.obj = ObjectFile() |
14 self.ostream = BinaryOutputStream(self.obj) | 14 self.ostream = BinaryOutputStream(self.obj) |
15 self.ostream.select_section('.text') | 15 self.ostream.select_section('code') |
16 self.assembler = msp430target.assembler | 16 self.assembler = msp430target.assembler |
17 | 17 |
18 def testMov(self): | 18 def testMov(self): |
19 self.feed("mov r14, r15") | 19 self.feed("mov r14, r15") |
20 self.check('0F4E') | 20 self.check('0F4E') |