RSP: JumpTableSize and RomOpen

This commit is contained in:
zilmar 2013-02-11 19:28:49 +11:00
parent 14352768ae
commit f5290c7895
3 changed files with 6 additions and 4 deletions

View File

@ -46,7 +46,7 @@
#define X86_RECOMP_VERBOSE #define X86_RECOMP_VERBOSE
#define BUILD_BRANCHLABELS_VERBOSE #define BUILD_BRANCHLABELS_VERBOSE
DWORD CompilePC, BlockID = 0; DWORD CompilePC, JumpTableSize, BlockID = 0;
DWORD dwBuffer = MainBuffer; DWORD dwBuffer = MainBuffer;
BOOL ChangedPC; BOOL ChangedPC;
@ -891,9 +891,10 @@ DWORD RunRecompilerCPU ( DWORD Cycles ) {
BYTE * Block; BYTE * Block;
RSP_Running = TRUE; RSP_Running = TRUE;
SetJumpTable(0x800); SetJumpTable(JumpTableSize);
while (RSP_Running) { while (RSP_Running)
{
Block = *(JumpTable + (*PrgCount >> 2)); Block = *(JumpTable + (*PrgCount >> 2));
if (Block == NULL) { if (Block == NULL) {

View File

@ -26,7 +26,7 @@
#include "opcode.h" #include "opcode.h"
extern DWORD CompilePC, NextInstruction; extern DWORD CompilePC, NextInstruction, JumpTableSize;
extern BOOL ChangedPC; extern BOOL ChangedPC;
#define CompilerWarning if (ShowErrors) DisplayError #define CompilerWarning if (ShowErrors) DisplayError

View File

@ -129,6 +129,7 @@ __declspec(dllexport) void GetDllInfo ( PLUGIN_INFO * PluginInfo );
__declspec(dllexport) void GetRspDebugInfo ( RSPDEBUG_INFO * DebugInfo ); __declspec(dllexport) void GetRspDebugInfo ( RSPDEBUG_INFO * DebugInfo );
__declspec(dllexport) void InitiateRSP ( RSP_INFO Rsp_Info, DWORD * CycleCount); __declspec(dllexport) void InitiateRSP ( RSP_INFO Rsp_Info, DWORD * CycleCount);
__declspec(dllexport) void InitiateRSPDebugger ( DEBUG_INFO Debug_Info); __declspec(dllexport) void InitiateRSPDebugger ( DEBUG_INFO Debug_Info);
__declspec(dllexport) void RomOpen (void);
__declspec(dllexport) void RomClosed (void); __declspec(dllexport) void RomClosed (void);
__declspec(dllexport) void DllConfig (HWND hWnd); __declspec(dllexport) void DllConfig (HWND hWnd);
__declspec(dllexport) void EnableDebugging (BOOL Enabled); __declspec(dllexport) void EnableDebugging (BOOL Enabled);