comparison python/ppci/buildtasks.py @ 381:6df89163e114

Fix section and ldr pseudo instruction
author Windel Bouwman
date Sat, 26 Apr 2014 17:41:56 +0200
parents 9667d78ba79e
children 173e20a47fda
comparison
equal deleted inserted replaced
380:67a584582aee 381:6df89163e114
51 output = assemble(source, target) 51 output = assemble(source, target)
52 except ParserException as e: 52 except ParserException as e:
53 raise TaskError('Error during assembly:' + str(e)) 53 raise TaskError('Error during assembly:' + str(e))
54 except CompilerError as e: 54 except CompilerError as e:
55 raise TaskError('Error during assembly:' + str(e)) 55 raise TaskError('Error during assembly:' + str(e))
56 except OSError as e:
57 raise TaskError('Error:' + str(e))
56 with open(output_filename, 'w') as f: 58 with open(output_filename, 'w') as f:
57 output.save(f) 59 output.save(f)
58 self.logger.debug('Assembling finished') 60 self.logger.debug('Assembling finished')
59 61
60 62