Mask the lower 3 bits of the de RSP operand (#55)

This commit is contained in:
Anghelo Carvajal 2024-05-17 22:38:19 -04:00 committed by GitHub
parent e0e52d1fc3
commit 94b59d56f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -309,7 +309,7 @@ bool process_instruction(size_t instr_index, const std::vector<rabbitizer::Instr
operand_string += fmt::format("{}, ", vs);
break;
case RspOperand::De:
operand_string += fmt::format("{}, ", instr.GetRsp_de());
operand_string += fmt::format("{}, ", instr.GetRsp_de() & 7);
break;
case RspOperand::Rt:
operand_string += fmt::format("{}{}, ", ctx_gpr_prefix(rt), rt);