Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
m68k: Add missing sign extension
  • Loading branch information
pmandin committed Jul 27, 2014
1 parent dcf76ec commit f666cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/SDL_mixer_m68k.c
Expand Up @@ -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) */
Expand Down

0 comments on commit f666cbb

Please sign in to comment.