Skip to content
Permalink
Browse files

m68k: Add missing sign extension

  • Loading branch information
pmandin committed Jul 27, 2014
1 parent dcf76ec commit f666cbbbafb12bcba21a7bbff11812534c299bd5
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/audio/SDL_mixer_m68k.c
@@ -82,6 +82,7 @@ void SDL_MixAudio_m68k_S8(char* dst, char* src, long len, long volume)
" moveq #0,%%d1\n"

" moveb %1@+,%%d0\n" /* d0 = *src++ */
" extw %%d0\n"
" muls %3,%%d0\n" /* d0 *= volume (0<=volume<=128) */
" moveb %0@,%%d1\n" /* d1 = *dst */
" asr #7,%%d0\n" /* d0 /= 128 (SDL_MIX_MAXVOLUME) */

0 comments on commit f666cbb

Please sign in to comment.