(self)
Execute a p-code load operation.
Execute a p-code load operation.
Execute a p - code load operation .
def _execute_load(self) -> None:
        """
        Execute a p-code load operation.
        """
        spc = self._current_op.inputs[0].get_space_from_const()
        assert spc.name in ("ram", "mem")
        off = self._get_value(self._current_op.inputs[1])
        out = self._current_op.output
        res = self.state.memory.load(off, out.size, endness=self.project.arch.memory_endness)
        l.debug("Loaded %s from offset %s", res, off)
        self._set_value(out, res)
def _execute_load ( self ) -> None : spc = self . _current_op . inputs [ 0 ] . get_space_from_const ( ) assert spc . name in ( "ram" , "mem" ) off = self . _get_value ( self . _current_op . inputs [ 1 ] ) out = self . _current_op . output res = self . state . memory . load ( off , out . size , endness = self . project . arch . memory_endness ) l . debug ( "Loaded %s from offset %s" , res , off ) self . _set_value ( out , res )