(self, args)
return self._values.new_integer().from_int(self._get_memory(addr))
PEEK: Retrieve the value at an emulated memory location.
PEEK: Retrieve the value at an emulated memory location.
PEEK : Retrieve the value at an emulated memory location .
def peek_(self, args):
        """PEEK: Retrieve the value at an emulated memory location."""
        addr, = args
        # no peeking the program code (or anywhere) in protected mode
        if self._memory.program.protected and not self.interpreter.run_mode:
            raise error.BASICError(error.IFC)
        addr = values.to_int(addr, unsigned=True)
        addr += self.segment * 0x10
        return self._values.new_integer().from_int(self._get_memory(addr))
def peek_ ( self , args ) : addr , = args # no peeking the program code (or anywhere) in protected mode if self . _memory . program . protected and not self . interpreter . run_mode : raise error . BASICError ( error . IFC ) addr = values . to_int ( addr , unsigned = True ) addr += self . segment * 0x10 return self . _values . new_integer ( ) . from_int ( self . _get_memory ( addr ) )