MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / get_rsp_element

Function get_rsp_element

RSPRecomp/src/rsp_recomp.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168std::optional<int> get_rsp_element(const rabbitizer::InstructionRsp& instr) {
169 if (instr.hasOperand(rabbitizer::OperandType::rsp_vt_elementhigh)) {
170 return instr.GetRsp_elementhigh();
171 } else if (instr.hasOperand(rabbitizer::OperandType::rsp_vt_elementlow) || instr.hasOperand(rabbitizer::OperandType::rsp_vs_index)) {
172 return instr.GetRsp_elementlow();
173 }
174
175 return std::nullopt;
176}
177
178bool rsp_ignores_element(InstrId id) {
179 return id == InstrId::rsp_vmacq || id == InstrId::rsp_vnop;

Callers 1

process_instructionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected