diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-06-07 15:57:46 +0100 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-06-07 15:57:46 +0100 |
| commit | f70082329d751ee8a358437feb34134e283b27d8 (patch) | |
| tree | c97c99835067e9a20725943b4b4c63d44d4e3bdc /libpcsxcore/pgxp_mem.h | |
| parent | 7ecfee1f664eeb92b653104f5f3c915cc6fe6bcb (diff) | |
| download | pcsxr-f70082329d751ee8a358437feb34134e283b27d8.tar.gz | |
Initial PGXP CPU commit
- Restructured project to base interface on PSX instructions
- Support for all relevant CPU arithmetic and logic instructions
- Debug output available via deferred PGXP calls
- Remove most dependencies on PCSXR
- Still very much a work in progress (lots of errors)
- Add extra debug information to GPU plugin (w values)
Diffstat (limited to 'libpcsxcore/pgxp_mem.h')
| -rw-r--r-- | libpcsxcore/pgxp_mem.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libpcsxcore/pgxp_mem.h b/libpcsxcore/pgxp_mem.h new file mode 100644 index 00000000..5f79a166 --- /dev/null +++ b/libpcsxcore/pgxp_mem.h @@ -0,0 +1,49 @@ +/*************************************************************************** +* Copyright (C) 2016 by iCatButler * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * +***************************************************************************/ + +/************************************************************************** +* pgxp_mem.h +* PGXP - Parallel/Precision Geometry Xform Pipeline +* +* Created on: 07 Jun 2016 +* Author: iCatButler +***************************************************************************/ + +#ifndef _PGXP_MEM_H_ +#define _PGXP_MEM_H_ + +#include "psxcommon.h" + +void PGXP_Init(); // initialise memory +char* PGXP_GetMem(); // return pointer to precision memory +u32 PGXP_ConvertAddress(u32 addr); + +struct PGXP_value_Tag; +typedef struct PGXP_value_Tag PGXP_value; + +PGXP_value* GetPtr(u32 addr); +PGXP_value* ReadMem(u32 addr); + +void ValidateAndCopyMem(PGXP_value* dest, u32 addr, u32 value); +void ValidateAndCopyMem16(PGXP_value* dest, u32 addr, u32 value); + +void WriteMem(PGXP_value* value, u32 addr); +void WriteMem16(PGXP_value* src, u32 addr); + +#endif//_PGXP_MEM_H_
\ No newline at end of file |
