(self, offset)
Retrieve data from program code.
Retrieve data from program code.
Retrieve data from program code .
def get_memory(self, offset):
        """Retrieve data from program code."""
        offset -= self.code_start
        code = self.bytecode.getvalue()
        try:
            return ord(code[offset:offset+1])
        except IndexError:
            return -1
def get_memory ( self , offset ) : offset -= self . code_start code = self . bytecode . getvalue ( ) try : return ord ( code [ offset : offset + 1 ] ) except IndexError : return - 1