2023-08-10 04:46:57 +00:00
|
|
|
#include "RSPOpcode.h"
|
|
|
|
#include "RspTypes.h"
|
|
|
|
|
|
|
|
enum RSPCpuType
|
|
|
|
{
|
|
|
|
InterpreterCPU = 0,
|
|
|
|
RecompilerCPU = 1,
|
|
|
|
};
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2023-07-17 22:06:25 +00:00
|
|
|
extern UDWORD EleSpec[16], Indx[16];
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2023-08-10 00:57:11 +00:00
|
|
|
typedef void (*p_func)(void);
|
2023-06-29 03:01:25 +00:00
|
|
|
|
2016-01-27 09:11:59 +00:00
|
|
|
extern p_func RSP_Opcode[64];
|
|
|
|
extern p_func RSP_RegImm[32];
|
|
|
|
extern p_func RSP_Special[64];
|
|
|
|
extern p_func RSP_Cop0[32];
|
|
|
|
extern p_func RSP_Cop2[32];
|
|
|
|
extern p_func RSP_Vector[64];
|
|
|
|
extern p_func RSP_Lc2[32];
|
|
|
|
extern p_func RSP_Sc2[32];
|
2023-06-01 11:46:23 +00:00
|
|
|
extern uint32_t *PrgCount, RSP_Running;
|
2023-06-15 11:39:44 +00:00
|
|
|
extern RSPOpcode RSPOpC;
|
2016-01-27 09:11:59 +00:00
|
|
|
|
2023-08-10 04:46:57 +00:00
|
|
|
void SetCPU(RSPCpuType core);
|
2023-06-01 11:46:23 +00:00
|
|
|
void Build_RSP(void);
|
2016-03-20 16:12:13 +00:00
|
|
|
|
2023-08-10 04:46:57 +00:00
|
|
|
extern uint32_t Mfc0Count, SemaphoreExit;
|
|
|
|
extern RSPCpuType g_CPUCore;
|