diff options
author | Twinaphex | 2017-01-29 06:00:06 +0100 |
---|---|---|
committer | GitHub | 2017-01-29 06:00:06 +0100 |
commit | b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b (patch) | |
tree | adce7b06d1acc25f52c6e10616451bba02f9f7a5 /source/dsp4emu.c | |
parent | 813fc89d37d1d8c8d2fa090a28f74aa0fdcea5df (diff) | |
parent | 0e59b999fa976de2d00490f552a1ff0a27d40f63 (diff) | |
download | snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.tar.gz snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.tar.bz2 snesemu-b9ad67f2d3f5bc1f7ebaad2eeb225d669aa7f58b.zip |
Merge pull request #30 from jamsilva/master
Converted most types to stdint-style (fixing a few in the process).
Diffstat (limited to 'source/dsp4emu.c')
-rw-r--r-- | source/dsp4emu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/dsp4emu.c b/source/dsp4emu.c index 4ea8fcb..c2ba8c8 100644 --- a/source/dsp4emu.c +++ b/source/dsp4emu.c @@ -16,7 +16,7 @@ ////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////// -int DSP4_Multiply(int16_t Multiplicand, int16_t Multiplier) +int32_t DSP4_Multiply(int16_t Multiplicand, int16_t Multiplier) { return Multiplicand * Multiplier; } @@ -515,7 +515,7 @@ DSP4_WAIT(2) resume2: // first init if (plane == 0x7fff) { - int pos1, pos2; + int32_t pos1, pos2; // initialize projection path_x[0] = x_left; @@ -1095,7 +1095,7 @@ DSP4_WAIT(3) resume3: DSP4_WAIT(4) // store final values - int height; + int32_t height; resume4: height = DSP4_READ_WORD(0); @@ -1229,7 +1229,7 @@ resume7: out_index = 6; // OAM: size,msb data - DSP4_Op06(sprite_size, (char) sp_msb); + DSP4_Op06(sprite_size, (int8_t) sp_msb); } // normal data @@ -1247,7 +1247,7 @@ resume7: DSP4_WRITE_WORD(out_index + 6, 0); // OAM: size,msb data - DSP4_Op06(sprite_size, (char) sp_msb); + DSP4_Op06(sprite_size, (int8_t) sp_msb); } // no sprite information |