project64/Source/Project64-rsp/cpu/RSPInstruction.h

34 lines
764 B
C
Raw Normal View History

#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);
2023-06-29 01:29:54 +00:00
static const char * ElementSpecifier(uint32_t Element);
uint32_t m_Address;
RSPOpcode m_Instruction;
char m_Name[40];
char m_Param[200];
};