RSP: A little clean up of VABS
This commit is contained in:
parent
ee452143ff
commit
97fbbffee8
|
@ -1262,10 +1262,9 @@ void RSP_Vector_VSUB(void)
|
||||||
|
|
||||||
void RSP_Vector_VABS(void)
|
void RSP_Vector_VABS(void)
|
||||||
{
|
{
|
||||||
uint8_t el, del;
|
uint8_t del;
|
||||||
RSPVector Result;
|
RSPVector Result;
|
||||||
|
for (uint8_t el = 0; el < 8; el++)
|
||||||
for (el = 0; el < 8; el++)
|
|
||||||
{
|
{
|
||||||
del = EleSpec[RSPOpC.rs].B[el];
|
del = EleSpec[RSPOpC.rs].B[el];
|
||||||
|
|
||||||
|
@ -1275,14 +1274,7 @@ void RSP_Vector_VABS(void)
|
||||||
}
|
}
|
||||||
else if (RSP_Vect[RSPOpC.vs].s16(el) < 0)
|
else if (RSP_Vect[RSPOpC.vs].s16(el) < 0)
|
||||||
{
|
{
|
||||||
if (RSP_Vect[RSPOpC.vt].u16(del) == 0x8000)
|
Result.u16(el) = RSP_Vect[RSPOpC.vt].u16(del) == 0x8000 ? 0x7FFF : RSP_Vect[RSPOpC.vt].s16(del) * -1;
|
||||||
{
|
|
||||||
Result.u16(el) = 0x7FFF;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Result.u16(el) = RSP_Vect[RSPOpC.vt].s16(del) * -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue