diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-11-23 02:38:31 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-11-23 02:38:31 +0000 |
| commit | 6b375badafb8ddc0a1c1a0eeaa29a70fea86b0c6 (patch) | |
| tree | 103860b5e72fff6699cde6b0e5c25950a0ed35ab /libpcsxcore/ppc/ppc.c | |
| parent | 4953fde289c18efa91926fcf7e81cf979f4c6c3d (diff) | |
| download | pcsxr-6b375badafb8ddc0a1c1a0eeaa29a70fea86b0c6.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@60002 e17a0e51-4ae3-4d35-97c3-1a29b211df97
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 00000000..efaf8b6d --- /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() { +} + |
