diff options
author | PCSX* teams | 2010-11-16 14:15:22 +0200 |
---|---|---|
committer | Grazvydas Ignotas | 2010-11-16 14:15:22 +0200 |
commit | ef79bbde537d6b9c745a7d86cb9df1d04c35590d (patch) | |
tree | ef8d2520dbb9e1e345b41b12c9959f300ca8fd10 /libpcsxcore/ppc/ppc.c | |
download | pcsx_rearmed-ef79bbde537d6b9c745a7d86cb9df1d04c35590d.tar.gz pcsx_rearmed-ef79bbde537d6b9c745a7d86cb9df1d04c35590d.tar.bz2 pcsx_rearmed-ef79bbde537d6b9c745a7d86cb9df1d04c35590d.zip |
pcsxr-1.9.92
Diffstat (limited to 'libpcsxcore/ppc/ppc.c')
-rw-r--r-- | libpcsxcore/ppc/ppc.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libpcsxcore/ppc/ppc.c b/libpcsxcore/ppc/ppc.c new file mode 100644 index 0000000..efaf8b6 --- /dev/null +++ b/libpcsxcore/ppc/ppc.c @@ -0,0 +1,32 @@ +/* + * ix86 core v0.5.1 + * Authors: linuzappz <linuzappz@pcsx.net> + * alexey silinov + */ + +#include <stdio.h> +#include <string.h> + +#include "ppc.h" + +// General Purpose hardware registers +int cpuHWRegisters[NUM_HW_REGISTERS] = { + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 +}; + +u32 *ppcPtr; + +void ppcInit() { +} +void ppcSetPtr(u32 *ptr) { + ppcPtr = ptr; +} +void ppcAlign(int bytes) { + // forward align + ppcPtr = (u32*)(((u32)ppcPtr + bytes) & ~(bytes - 1)); +} + +void ppcShutdown() { +} + |