.. _register_command:

		Register a Command in the Processor,
		the Command can now be executed by the Processor.

def register_command(self, command):
		"""
		.. _register_command:

		Register a Command in the Processor,
		the Command can now be executed by the Processor.
		"""
		if(command.opcode() in self.commands_by_opcode):
			raise SetupError("Command with opcode {}(mnemonic: {}) already registered".format(command.opcode(), command.mnemonic()))
		command.membus = self.memory_bus
		command.devbus = self.device_bus
		command.register_interface = self.register_interface
		self.commands_by_opcode[command.opcode()] = command