| 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 |
| r22637 | r22638 | |
|---|---|---|
| 387 | 387 | |
| 388 | 388 | UINT32 gte::Lm_E( UINT32 result ) |
| 389 | 389 | { |
| 390 | if( result | |
| 390 | if( result == 0xffffffff ) | |
| 391 | 391 | { |
| 392 | 392 | FLAG |= ( 1 << 31 ) | ( 1 << 17 ); |
| 393 | 393 | return 0x1ffff; |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | if( result > 0x1ffff ) | |
| 397 | { | |
| 398 | return 0x1ffff; | |
| 399 | } | |
| 400 | ||
| 396 | 401 | return result; |
| 397 | 402 | } |
| 398 | 403 |
| Previous | 199869 Revisions | Next |