From f70082329d751ee8a358437feb34134e283b27d8 Mon Sep 17 00:00:00 2001 From: iCatButler Date: Tue, 7 Jun 2016 15:57:46 +0100 Subject: 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) --- libpcsxcore/pgxp_mem.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 libpcsxcore/pgxp_mem.h (limited to 'libpcsxcore/pgxp_mem.h') 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 -- cgit v1.2.3