rpcsx/rpcs3/Emu/Cell/PPUDecoder.h

26 lines
365 B
C
Raw Normal View History

#pragma once
#include "Emu/Cell/PPUOpcodes.h"
#include "Emu/Cell/PPCDecoder.h"
#include "PPUInstrTable.h"
class PPU_Decoder : public PPC_Decoder
{
PPU_Opcodes* m_op;
public:
PPU_Decoder(PPU_Opcodes& op) : m_op(&op)
2013-07-01 14:08:58 +02:00
{
}
~PPU_Decoder()
{
m_op->Exit();
delete m_op;
}
virtual void Decode(const u32 code)
{
(*PPU_instr::main_list)(m_op, code);
}
};