rpcsx/rpcs3/Emu/Cell/SPUDecoder.h

26 lines
353 B
C
Raw Normal View History

#pragma once
#include "Emu/Cell/SPUOpcodes.h"
#include "Emu/Cell/PPCDecoder.h"
2013-11-19 11:30:58 +01:00
#include "Emu/Cell/SPUInstrTable.h"
class SPUDecoder : public PPCDecoder
{
SPUOpcodes* m_op;
public:
SPUDecoder(SPUOpcodes& op) : m_op(&op)
{
}
~SPUDecoder()
{
2013-07-04 16:20:36 +02:00
delete m_op;
}
virtual void Decode(const u32 code)
{
2013-07-04 16:20:36 +02:00
(*SPU_instr::rrr_list)(m_op, code);
}
};