Skip to content

Conversation

@Lucasnribeiro
Copy link
Contributor

implementing this issue #17

@ran-j
Copy link
Owner

ran-j commented Jan 29, 2026

Nice work @Lucasnribeiro

@Lucasnribeiro
Copy link
Contributor Author

at first the idea was to just introduce rabbitizer, but i realized that we have the opportunity to just drop R5900_decoder entirely in favor of using Rabbitizer. Now the pr is a little bigger but more complete

std::cerr << "Error decoding instruction at " << formatAddress(addr)
<< ": " << e.what() << std::endl;
}
RabbitizerInstruction instr;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use decodeInstruction function here ?

}

Instruction inst = m_decoder->decodeInstruction(address, rawInstruction);
Instruction inst = decodeInstruction(address, rawInstruction);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a namespace for decoder so de can call decoder::decodeInstruction or some other namespace, insted of just calling decodeInstruction

@@ -0,0 +1,651 @@
#include "ps2recomp/decoder.h"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

about this file: r5900_decoder.cpp functions lilke decodeIType, decodeRegimm and other handle way more that what we have here. why remove the other cases ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants