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

33 lines
756 B
C
Raw Normal View History

#pragma once
#include "RSPOpcode.h"
#include <stdint.h>
#include <string>
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 DecodeLSC2Name(const char LoadStoreIdent);
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];
};