News:

11 March 2016 - Forum Rules

Main Menu

What does the Allegrex "ins" instruction does?

Started by kenaku, June 26, 2021, 03:40:27 PM

Previous topic - Next topic

kenaku

Has the tittle says, i been trying to figure something for while, looking how the game calculates an offset but has soon this "ins" instruction is used in the value a have no idea what it did.


[Unknown]

It may also help to look at PPSSPP's interpreter for things like this:
https://github.com/hrydgard/ppsspp/blob/bb38cf842bdf25519d187961be81e547bc0ee23f/Core/MIPS/MIPSInt.cpp#L835

But basically it just replaces ("inserts") the specified bits.

-[Unknown]

kenaku

Thank you for your answers, i am now able to calculate the offsets correctly. All it was doing was change 6 bits from the right to 0. But could not they just put the real offsets?