(self, new_size)
Set the data memory size (on CLEAR)
Set the data memory size (on CLEAR)
Set the data memory size ( on CLEAR )
def set_basic_memory_size(self, new_size):
        """Set the data memory size (on CLEAR) """
        if new_size == 0:
            raise error.BASICError(error.IFC)
        elif new_size < 0:
            new_size += 0x10000
        if new_size > self.total_memory:
            raise error.BASICError(error.OUT_OF_MEMORY)
        self.total_memory = new_size
def set_basic_memory_size ( self , new_size ) : if new_size == 0 : raise error . BASICError ( error . IFC ) elif new_size < 0 : new_size += 0x10000 if new_size > self . total_memory : raise error . BASICError ( error . OUT_OF_MEMORY ) self . total_memory = new_size