Merge pull request #993 from cxd4/moar-rsp-things

[RSP] Get Dma.c to start to compile outside Windows.
This commit is contained in:
zilmar 2016-02-11 21:37:05 +11:00
commit caf22acb68
18 changed files with 34 additions and 35 deletions

View File

@ -27,7 +27,7 @@
#include <windows.h>
#include <stdio.h>
#include <float.h>
#include "RSP.h"
#include "Rsp.h"
#include "Cpu.h"
#include "RSP registers.h"
#include "RSP Command.h"

View File

@ -28,7 +28,7 @@
#include <stdio.h>
#include <float.h>
#include "breakpoint.h"
#include "RSP.h"
#include "Rsp.h"
#include "Cpu.h"
#include "Interpreter Ops.h"
#include "Interpreter CPU.h"

View File

@ -27,7 +27,7 @@
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include "RSP.h"
#include "Rsp.h"
#include "CPU.h"
#include "RSP Command.h"
#include "RSP Registers.h"

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "rsp.h"
#include "Rsp.h"
#include "x86.h"
#include "memory.h"
#include "RSP registers.h"

View File

@ -29,7 +29,7 @@
#include <stdlib.h>
#include "opcode.h"
#include "RSP.h"
#include "Rsp.h"
#include "CPU.h"
#include "RSP Registers.h"
#include "RSP Command.h"

View File

@ -27,7 +27,7 @@
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
#include "rsp.h"
#include "Rsp.h"
#include "types.h"
#define GeneralPurpose 1

View File

@ -24,7 +24,7 @@
*
*/
#include "types.h"
#include "Types.h"
#define SP_STATUS_HALT 0x001 /* Bit 0: halt */
#define SP_STATUS_BROKE 0x002 /* Bit 1: broke */

View File

@ -25,7 +25,7 @@
*/
#include <windows.h>
#include "rsp.h"
#include "Rsp.h"
#include "CPU.h"
#include "Interpreter CPU.h"
#include "Recompiler CPU.h"

View File

@ -28,7 +28,7 @@
#include <stdio.h>
#include <float.h>
#include <stdlib.h>
#include "RSP.h"
#include "Rsp.h"
#include "Cpu.h"
#include "Interpreter CPU.h"
#include "Recompiler CPU.h"

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "RSP.h"
#include "Rsp.h"
#include "CPU.h"
#include "Interpreter CPU.h"
#include "Interpreter Ops.h"

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "RSP.h"
#include "Rsp.h"
#include "CPU.h"
#include "Recompiler CPU.h"
#include "RSP Command.h"

View File

@ -64,7 +64,7 @@ typedef struct {
} PLUGIN_INFO;
typedef struct {
HINSTANCE hInst;
void * hInst;
int MemoryBswaped; /* If this is set to TRUE, then the memory has been pre
bswap on a dword (32 bits) boundry */
uint8_t * RDRAM;
@ -102,19 +102,19 @@ typedef struct {
typedef struct {
/* Menu */
/* Items should have an ID between 5001 and 5100 */
HMENU hRSPMenu;
void * hRSPMenu;
void (*ProcessMenuItem) ( int ID );
/* Break Points */
int UseBPoints;
char BPPanelName[20];
void (*Add_BPoint) ( void );
void (*CreateBPPanel) ( HWND hDlg, RECT rcBox );
void (*CreateBPPanel) (void * hDlg, RECT rcBox);
void (*HideBPPanel) ( void );
void (*PaintBPPanel) ( PAINTSTRUCT ps );
void (*ShowBPPanel) ( void );
void (*RefreshBpoints) ( HWND hList );
void (*RemoveBpoint) ( HWND hList, int index );
void (*RefreshBpoints)(void * hList);
void (*RemoveBpoint) (void * hList, int index);
void (*RemoveAllBpoint) ( void );
/* RSP command Window */
@ -133,30 +133,30 @@ typedef struct {
} DEBUG_INFO;
EXPORT void CloseDLL(void);
EXPORT void DllAbout(HWND hParent);
EXPORT DWORD DoRspCycles(DWORD Cycles);
EXPORT void DllAbout(void * hParent);
EXPORT uint32_t DoRspCycles(uint32_t Cycles);
EXPORT void GetDllInfo(PLUGIN_INFO * PluginInfo);
EXPORT void GetRspDebugInfo(RSPDEBUG_INFO * DebugInfo);
EXPORT void InitiateRSP(RSP_INFO Rsp_Info, DWORD * CycleCount);
EXPORT void InitiateRSP(RSP_INFO Rsp_Info, uint32_t * CycleCount);
EXPORT void InitiateRSPDebugger(DEBUG_INFO Debug_Info);
EXPORT void RomOpen(void);
EXPORT void RomClosed(void);
EXPORT void DllConfig(HWND hWnd);
EXPORT void EnableDebugging(BOOL Enabled);
EXPORT void DllConfig(void * hWnd);
EXPORT void EnableDebugging(int Enabled);
EXPORT void PluginLoaded(void);
DWORD AsciiToHex (char * HexValue);
uint32_t AsciiToHex(char * HexValue);
void DisplayError (char * Message, ...);
int GetStoredWinPos( char * WinName, DWORD * X, DWORD * Y );
int GetStoredWinPos(char * WinName, uint32_t * X, uint32_t * Y);
#define InterpreterCPU 0
#define RecompilerCPU 1
extern int DebuggingEnabled, Profiling, IndvidualBlock, ShowErrors, BreakOnStart, LogRDP, LogX86Code;
extern DWORD CPUCore;
extern uint32_t CPUCore;
extern DEBUG_INFO DebugInfo;
extern RSP_INFO RSPInfo;
extern HINSTANCE hinstDLL;
extern void * hinstDLL;
#if defined(__cplusplus)
}

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "rsp.h"
#include "Rsp.h"
#include "x86.h"
#include "memory.h"
#include "RSP registers.h"

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "rsp.h"
#include "Rsp.h"
#include "x86.h"
#include "memory.h"
#include "RSP registers.h"

View File

@ -26,7 +26,7 @@
#include <windows.h>
#include <stdio.h>
#include "rsp.h"
#include "Rsp.h"
#include "CPU.h"
#include "breakpoint.h"

View File

@ -26,7 +26,7 @@
#include <Windows.h>
#include <stdio.h>
#include "RSP.h"
#include "Rsp.h"
#include "RSP Registers.h"
#include "memory.h"

View File

@ -27,7 +27,7 @@
enum { MaxMaps = 32 };
#include <windows.h>
#include "rsp.h"
#include "Rsp.h"
#include "RSP Registers.h"
DWORD NoOfMaps, MapsCRC[MaxMaps], Table;

View File

@ -24,16 +24,15 @@
*
*/
#include <windows.h>
#include "types.h"
#include "Types.h"
int AllocateMemory ( void );
void FreeMemory ( void );
void SetJumpTable ( DWORD End );
void SetJumpTable (uint32_t End);
extern BYTE * RecompCode, * RecompCodeSecondary, * RecompPos;
extern uint8_t * RecompCode, * RecompCodeSecondary, * RecompPos;
extern void ** JumpTable;
extern DWORD Table;
extern uint32_t Table;
void RSP_LB_DMEM ( uint32_t Addr, uint8_t * Value );
void RSP_LBV_DMEM ( uint32_t Addr, int vect, int element );