(self, address)
Retrieve data from data memory.
Retrieve data from data memory.
Retrieve data from data memory .
def _get_var_memory(self, address):
        """Retrieve data from data memory."""
        if address < self.var_current():
            return self.scalars.get_memory(address)
        elif address < self.var_current() + self.arrays.current:
            return self.arrays.get_memory(address)
        elif address > self.strings.current:
            return self.strings.get_memory(address)
        else:
            # unallocated var space
            return -1
def _get_var_memory ( self , address ) : if address < self . var_current ( ) : return self . scalars . get_memory ( address ) elif address < self . var_current ( ) + self . arrays . current : return self . arrays . get_memory ( address ) elif address > self . strings . current : return self . strings . get_memory ( address ) else : # unallocated var space return - 1