mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-02 22:59:59 +01:00
27 lines
375 B
C++
27 lines
375 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);
|
|
}
|
|
};
|