comparison python/ppci/buildfunctions.py @ 386:2a970e7270e2

Added repeat assembler macro
author Windel Bouwman
date Thu, 01 May 2014 17:40:59 +0200
parents d056b552d3f4
children 6ae782a085e0
comparison
equal deleted inserted replaced
385:d056b552d3f4 386:2a970e7270e2
73 output = ObjectFile() 73 output = ObjectFile()
74 assembler = target.assembler 74 assembler = target.assembler
75 logger.debug('Assembling into code section') 75 logger.debug('Assembling into code section')
76 ostream = BinaryAndLoggingStream(output) 76 ostream = BinaryAndLoggingStream(output)
77 ostream.select_section('code') 77 ostream.select_section('code')
78 assembler.prepare()
78 assembler.assemble(source, ostream) 79 assembler.assemble(source, ostream)
79 assembler.flush() 80 assembler.flush()
80 return output 81 return output
81 82
82 83