32 lines
703 B
C
32 lines
703 B
C
|
#pragma once
|
||
|
#include <string>
|
||
|
#include <stdint.h>
|
||
|
#include "RSPOpcode.h"
|
||
|
|
||
|
class RSPInstruction
|
||
|
{
|
||
|
public:
|
||
|
RSPInstruction(uint32_t Address, uint32_t Instruction);
|
||
|
|
||
|
const char * Name();
|
||
|
const char * Param();
|
||
|
std::string NameAndParam();
|
||
|
|
||
|
private:
|
||
|
RSPInstruction(void);
|
||
|
RSPInstruction(const RSPInstruction &);
|
||
|
RSPInstruction & operator=(const RSPInstruction &);
|
||
|
|
||
|
void DecodeName(void);
|
||
|
void DecodeSpecialName(void);
|
||
|
void DecodeRegImmName(void);
|
||
|
void DecodeCop0Name(void);
|
||
|
void DecodeCop2Name(void);
|
||
|
void DecodeLC2Name(void);
|
||
|
void DecodeSC2Name(void);
|
||
|
|
||
|
uint32_t m_Address;
|
||
|
RSPOpcode m_Instruction;
|
||
|
char m_Name[40];
|
||
|
char m_Param[200];
|
||
|
};
|