comparison test/testarmasm.py @ 335:582a1aaa3983

Added long branch format
author Windel Bouwman
date Mon, 17 Feb 2014 20:41:30 +0100
parents 44f336460c2a
children c7cc54c0dfdf
comparison
equal deleted inserted replaced
334:6f4753202b9a 335:582a1aaa3983
1 import unittest 1 import unittest
2 import outstream 2 import outstream
3 from ppci.objectfile import ObjectFile
3 from asm import Assembler 4 from asm import Assembler
4 from testasm import AsmTestCaseBase 5 from testasm import AsmTestCaseBase
5 from target.target_list import armtarget 6 from target.target_list import armtarget
6 7
7 8
8 class AssemblerARMTestCase(AsmTestCaseBase): 9 class AssemblerARMTestCase(AsmTestCaseBase):
9 def setUp(self): 10 def setUp(self):
10 self.t = armtarget 11 self.t = armtarget
11 self.o = outstream.BinOutputStream() 12 self.obj = ObjectFile()
13 self.o = outstream.BinaryOutputStream(self.obj)
12 self.o.selectSection('.text') 14 self.o.selectSection('.text')
13 self.a = Assembler(target=self.t, stream=self.o) 15 self.a = Assembler(target=self.t, stream=self.o)
14 16
15 def testMapOperand(self): 17 def testMapOperand(self):
16 pass 18 pass