diff options
| author | 2014-12-18 20:35:10 -0500 | |
|---|---|---|
| committer | 2014-12-18 20:35:14 -0500 | |
| commit | 92c53fe52220630664ae77a4c915d5af768b8adc (patch) | |
| tree | 937a23b4effeffa4f4a0d123104e70cd95c83fbe /src | |
| parent | armemu: Clean up naming and formatting for SSAT16 (diff) | |
| download | yuzu-92c53fe52220630664ae77a4c915d5af768b8adc.tar.gz yuzu-92c53fe52220630664ae77a4c915d5af768b8adc.tar.xz yuzu-92c53fe52220630664ae77a4c915d5af768b8adc.zip | |
armemu: Fix SSAT16
The lower-bound would never be negative like it should
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/arm/interpreter/armemu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/interpreter/armemu.cpp b/src/core/arm/interpreter/armemu.cpp index 837875d4f..e39ea2cae 100644 --- a/src/core/arm/interpreter/armemu.cpp +++ b/src/core/arm/interpreter/armemu.cpp | |||
| @@ -6084,7 +6084,7 @@ L_stm_s_takeabort: | |||
| 6084 | const u8 rd_idx = BITS(12, 15); | 6084 | const u8 rd_idx = BITS(12, 15); |
| 6085 | const u8 rn_idx = BITS(0, 3); | 6085 | const u8 rn_idx = BITS(0, 3); |
| 6086 | const u8 num_bits = BITS(16, 19) + 1; | 6086 | const u8 num_bits = BITS(16, 19) + 1; |
| 6087 | const s16 min = (0x8000 >> (16 - num_bits)); | 6087 | const s16 min = -(0x8000 >> (16 - num_bits)); |
| 6088 | const s16 max = (0x7FFF >> (16 - num_bits)); | 6088 | const s16 max = (0x7FFF >> (16 - num_bits)); |
| 6089 | s16 rn_lo = (state->Reg[rn_idx]); | 6089 | s16 rn_lo = (state->Reg[rn_idx]); |
| 6090 | s16 rn_hi = (state->Reg[rn_idx] >> 16); | 6090 | s16 rn_hi = (state->Reg[rn_idx] >> 16); |