rpcsx/rpcs3/Emu/Cell/SPUDecoder.h
2013-07-04 17:20:36 +03:00

32 lines
496 B
C++

#pragma once
#include "Emu/Cell/SPUOpcodes.h"
#include "Emu/Cell/PPCDecoder.h"
#include "Emu/Cell/SPUInstrtable.h"
class SPU_Decoder : public PPC_Decoder
{
SPU_Opcodes* m_op;
public:
SPU_Decoder(SPU_Opcodes& op) : m_op(&op)
{
}
~SPU_Decoder()
{
m_op->Exit();
delete m_op;
}
virtual void Decode(const u32 code)
{
(*SPU_instr::rrr_list)(m_op, code);
}
};
#undef START_OPCODES_GROUP_
#undef START_OPCODES_GROUP
#undef ADD_OPCODE
#undef ADD_NULL_OPCODE
#undef END_OPCODES_GROUP