def readPspX86Mem(self, uX86Addr, cbRead): abData = bytearray(cbRead); pvBuf = ffi.from_buffer(abData); self.rcLibLast = lib.PSPProxyCtxPspX86MemRead(self.hCtx, uX86Addr, pvBuf, cbRead); if self.rcLibLast == 0: return (0, abData); else: return (self.rcLibLast, None);
def readX86Mem(self, R0KernVirtual, cbRead): abData = bytearray(cbRead); pvBuf = ffi.from_buffer(abData); self.rcLibLast = lib.PSPProxyCtxX86MemRead(self.hCtx, pvBuf, R0KernVirtual, cbRead); if self.rcLibLast == 0: return (0, abData); else: return (self.rcLibLast, None);
def readX86PhysMem(self, PhysAddr, cbRead): abData = bytearray(cbRead) pvBuf = ffi.from_buffer(abData) self.rcLibLast = lib.PSPProxyCtxX86PhysMemRead(self.hCtx, pvBuf, PhysAddr, cbRead) if self.rcLibLast == 0: return (0, abData) else: return (self.rcLibLast, None)
def writePspMem(self, uPspAddr, abData): pvBuf = ffi.from_buffer(abData) self.rcLibLast = lib.PSPProxyCtxPspMemWrite(self.hCtx, uPspAddr, pvBuf, len(abData)) return self.rcLibLast
def writeX86PhysMem(self, PhysAddr, abData): pvBuf = ffi.from_buffer(abData) self.rcLibLast = lib.PSPProxyCtxX86PhysMemWrite( self.hCtx, PhysAddr, pvBuf, len(abData)) return self.rcLibLast
def writeX86Mem(self, R0KernVirtual, abData): pvBuf = ffi.from_buffer(abData) self.rcLibLast = lib.PSPProxyCtxX86MemWrite(self.hCtx, R0KernVirtual, pvBuf, len(abData)) return self.rcLibLast