assemble the given code and program the Flash

def assemble_flash_code(self, asm):
		"""
			assemble the given code and program the Flash
		"""
		stream = StringIO(asm)
		worker = assembler.Assembler(self.processor, stream)
		try:
			result = worker.assemble()
		except BaseException as e:
			return e, None
		self.flash.program(result)
		return None, result