mirror of
https://github.com/libretro/Play-.git
synced 2025-02-25 22:15:27 +00:00
52 lines
1.0 KiB
C++
52 lines
1.0 KiB
C++
#ifndef _COP_SCU_H_
|
|
#define _COP_SCU_H_
|
|
|
|
#include "MIPSCoprocessor.h"
|
|
|
|
class CCOP_SCU : public CMIPSCoprocessor
|
|
{
|
|
public:
|
|
enum REGISTER
|
|
{
|
|
STATUS = 0x0C,
|
|
EPC = 0x0E,
|
|
ERROREPC = 0x1E,
|
|
};
|
|
|
|
CCOP_SCU(MIPS_REGSIZE);
|
|
virtual void CompileInstruction(uint32, CCodeGen*, CMIPS*);
|
|
virtual void GetInstruction(uint32, char*);
|
|
virtual void GetArguments(uint32, uint32, char*);
|
|
virtual uint32 GetEffectiveAddress(uint32, uint32);
|
|
virtual bool IsBranch(uint32);
|
|
|
|
static char* m_sRegName[];
|
|
|
|
private:
|
|
typedef void (CCOP_SCU::*InstructionFuncConstant)();
|
|
|
|
static InstructionFuncConstant m_pOpGeneral[0x20];
|
|
static InstructionFuncConstant m_pOpBC0[0x20];
|
|
static InstructionFuncConstant m_pOpC0[0x40];
|
|
|
|
uint8 m_nRT;
|
|
uint8 m_nRD;
|
|
|
|
//General
|
|
void MFC0();
|
|
void MTC0();
|
|
void BC0();
|
|
void C0();
|
|
|
|
//BC0
|
|
void BC0F();
|
|
void BC0T();
|
|
|
|
//C0
|
|
void ERET();
|
|
void EI();
|
|
void DI();
|
|
};
|
|
|
|
#endif
|