This is the only occurrence I found so far in our decomp. It looks like when the operand is negative, the addu $at,$at,SOURCE does not match and it requires to be addu $at,SOURCE,$at instead.
This probably needs some testing in all the decomps where maspsx is installed to verify the pattern I found is actually valid or just a fluke.
I pretty much copy&pasted the previous condition. If you have better ideas on how to tweak this piece of code let's modify it.
I noticed an edge scenario proven by this scratch: https://decomp.me/scratch/vbKu6
This is the only occurrence I found so far in our decomp. It looks like when the operand is negative, the
addu $at,$at,SOURCE
does not match and it requires to beaddu $at,SOURCE,$at
instead.This probably needs some testing in all the decomps where maspsx is installed to verify the pattern I found is actually valid or just a fluke.
I pretty much copy&pasted the previous condition. If you have better ideas on how to tweak this piece of code let's modify it.