Previous 199869 Revisions Next

r22638 Thursday 2nd May, 2013 at 00:23:17 UTC by smf
Don't set E flag if the result rounds up to 2, just limit the result. [smf]
[src/emu/cpu/psx]gte.c

trunk/src/emu/cpu/psx/gte.c
r22637r22638
387387
388388UINT32 gte::Lm_E( UINT32 result )
389389{
390   if( result > 0x1ffff )
390   if( result == 0xffffffff )
391391   {
392392      FLAG |= ( 1 << 31 ) | ( 1 << 17 );
393393      return 0x1ffff;
394394   }
395395
396   if( result > 0x1ffff )
397   {
398      return 0x1ffff;
399   }
400
396401   return result;
397402}
398403

Previous 199869 Revisions Next


© 1997-2024 The MAME Team