code: def write(self, offset, value):
  		
  		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)
docs: .. _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.