def set(self, value, casts=False, bits=16):
    if (value.__class__ == Powerpc_Register):
        raise TypeError('value is a register')
    self.value = value
    self.value = cast(self)
    if casts:
        self.value = cast(self, bits)
def set(self, value, casts=False, bits=16):
    if (value.__class__ == Powerpc_Register):
        raise TypeError('value is a register')
    self.value = value
    self.value = cast(self)
    if casts:
        self.value = cast(self, bits)