DSPDisassembler: Remove redundant definition of CW

CW is used as a fallback to write a full instruction as hex, but we already declare it in DSPTables.h for the assembler.
This commit is contained in:
Pokechu22 2022-05-23 17:04:27 -07:00
parent b06d38389b
commit db3d457e5f

View File

@ -152,10 +152,8 @@ bool DSPDisassembler::DisassembleOpcode(const u16* binbuf, u16* pc, std::string&
// Find main opcode
const DSPOPCTemplate* opc = FindOpInfoByOpcode(op1);
const DSPOPCTemplate fake_op = {"CW", 0x0000, 0x0000, 1, 1, {{P_VAL, 2, 0, 0, 0xffff}},
false, false, false, false, false};
if (!opc)
opc = &fake_op;
opc = &cw;
bool is_extended = false;
bool is_only_7_bit_ext = false;