RSP: JumpTableSize and RomOpen
This commit is contained in:
parent
14352768ae
commit
f5290c7895
|
@ -46,7 +46,7 @@
|
|||
#define X86_RECOMP_VERBOSE
|
||||
#define BUILD_BRANCHLABELS_VERBOSE
|
||||
|
||||
DWORD CompilePC, BlockID = 0;
|
||||
DWORD CompilePC, JumpTableSize, BlockID = 0;
|
||||
DWORD dwBuffer = MainBuffer;
|
||||
BOOL ChangedPC;
|
||||
|
||||
|
@ -891,9 +891,10 @@ DWORD RunRecompilerCPU ( DWORD Cycles ) {
|
|||
BYTE * Block;
|
||||
|
||||
RSP_Running = TRUE;
|
||||
SetJumpTable(0x800);
|
||||
SetJumpTable(JumpTableSize);
|
||||
|
||||
while (RSP_Running) {
|
||||
while (RSP_Running)
|
||||
{
|
||||
Block = *(JumpTable + (*PrgCount >> 2));
|
||||
|
||||
if (Block == NULL) {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "opcode.h"
|
||||
|
||||
extern DWORD CompilePC, NextInstruction;
|
||||
extern DWORD CompilePC, NextInstruction, JumpTableSize;
|
||||
extern BOOL ChangedPC;
|
||||
|
||||
#define CompilerWarning if (ShowErrors) DisplayError
|
||||
|
|
|
@ -129,6 +129,7 @@ __declspec(dllexport) void GetDllInfo ( PLUGIN_INFO * PluginInfo );
|
|||
__declspec(dllexport) void GetRspDebugInfo ( RSPDEBUG_INFO * DebugInfo );
|
||||
__declspec(dllexport) void InitiateRSP ( RSP_INFO Rsp_Info, DWORD * CycleCount);
|
||||
__declspec(dllexport) void InitiateRSPDebugger ( DEBUG_INFO Debug_Info);
|
||||
__declspec(dllexport) void RomOpen (void);
|
||||
__declspec(dllexport) void RomClosed (void);
|
||||
__declspec(dllexport) void DllConfig (HWND hWnd);
|
||||
__declspec(dllexport) void EnableDebugging (BOOL Enabled);
|
||||
|
|
Loading…
Reference in New Issue