Esempio n. 1
0
 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);
Esempio n. 2
0
 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);
Esempio n. 3
0
 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)
Esempio n. 4
0
 def writePspMem(self, uPspAddr, abData):
     pvBuf = ffi.from_buffer(abData)
     self.rcLibLast = lib.PSPProxyCtxPspMemWrite(self.hCtx, uPspAddr, pvBuf,
                                                 len(abData))
     return self.rcLibLast
Esempio n. 5
0
 def writeX86PhysMem(self, PhysAddr, abData):
     pvBuf = ffi.from_buffer(abData)
     self.rcLibLast = lib.PSPProxyCtxX86PhysMemWrite(
         self.hCtx, PhysAddr, pvBuf, len(abData))
     return self.rcLibLast
Esempio n. 6
0
 def writeX86Mem(self, R0KernVirtual, abData):
     pvBuf = ffi.from_buffer(abData)
     self.rcLibLast = lib.PSPProxyCtxX86MemWrite(self.hCtx, R0KernVirtual,
                                                 pvBuf, len(abData))
     return self.rcLibLast