comparison test/testmsp430asm.py @ 292:534b94b40aa8

Fixup reorganize
author Windel Bouwman
date Wed, 27 Nov 2013 08:06:42 +0100
parents 7b38782ed496
children 44f336460c2a
comparison
equal deleted inserted replaced
290:7b38782ed496 292:534b94b40aa8
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import unittest 3 import unittest
4 from asmnodes import AInstruction, ABinop, AUnop, ASymbol, ALabel, ANumber 4 from asmnodes import AInstruction, ABinop, AUnop, ASymbol, ALabel, ANumber
5 from asm import tokenize, Assembler 5 from asm import tokenize, Assembler
6 import msp430
7 import outstream 6 import outstream
8 from target import Label 7 from target import Label, msp430target
9 from testasm import AsmTestCaseBase 8 from testasm import AsmTestCaseBase
10 9
11 10
12 class AssemblerMSP430TestCase(AsmTestCaseBase): 11 class AssemblerMSP430TestCase(AsmTestCaseBase):
13 def setUp(self): 12 def setUp(self):
14 self.t = msp430.msp430target 13 self.t = msp430target
15 self.o = outstream.BinOutputStream() 14 self.o = outstream.BinOutputStream()
16 self.o.selectSection('.text') 15 self.o.selectSection('.text')
17 self.a = Assembler(target=self.t, stream=self.o) 16 self.a = Assembler(target=self.t, stream=self.o)
18 17
19 def testMapMovInstruction(self): 18 def testMapMovInstruction(self):