2 * ppc definitions v0.5.1
3 * Authors: linuzappz <linuzappz@pcsx.net>
14 // include basic types
15 #include "../psxcommon.h"
16 #include "ppc_mnemonics.h"
18 #define NUM_HW_REGISTERS 29
21 #define write8(val) *(u8 *)ppcPtr = val; ppcPtr++;
22 #define write16(val) *(u16*)ppcPtr = val; ppcPtr+=2;
23 #define write32(val) *(u32*)ppcPtr = val; ppcPtr+=4;
24 #define write64(val) *(u64*)ppcPtr = val; ppcPtr+=8;
26 #define CALLFunc(FUNC) \
30 if ((_func & 0x1fffffc) == _func) { \
39 extern int cpuHWRegisters[NUM_HW_REGISTERS];
43 extern u32 *j32Ptr[32];
46 void ppcSetPtr(u32 *ptr);
49 void ppcAlign(int bytes);
51 void recRun(void (*func)(), u32 hw1, u32 hw2);
52 u8 dynMemRead8(u32 mem);
53 u16 dynMemRead16(u32 mem);
54 u32 dynMemRead32(u32 mem);
55 void dynMemWrite32(u32 mem, u32 val);