.. _write:

		Writes the memory word at ``offset`` to ``value``.

		Might raise ReadOnlyError_, if the device is read-only.
		Might raise AddressError_, if the offset exceeds the size of the device.

def write(self, offset, value):
		"""
		.. _write:

		Writes the memory word at ``offset`` to ``value``.

		Might raise ReadOnlyError_, if the device is read-only.
		Might raise AddressError_, if the offset exceeds the size of the device.
		"""
		if(not self.mode & 0b10):
			raise ReadOnlyError("Device is Read-Only")
		if(offset >= self.size):
			raise AddressError("Offset({}) not in address space({})".format(offset, self.size))
		self.repr_[offset].setvalue(value)