19682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*
29682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    SDL - Simple DirectMedia Layer
39682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Copyright (C) 1997-2012 Sam Lantinga
49682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
59682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    This library is free software; you can redistribute it and/or
69682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    modify it under the terms of the GNU Library General Public
79682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    License as published by the Free Software Foundation; either
89682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    version 2 of the License, or (at your option) any later version.
99682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    This library is distributed in the hope that it will be useful,
119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    but WITHOUT ANY WARRANTY; without even the implied warranty of
129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Library General Public License for more details.
149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    You should have received a copy of the GNU Library General Public
169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    License along with this library; if not, write to the Free
179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    Sam Lantinga
209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    slouken@libsdl.org
219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/
229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#include "SDL_config.h"
239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall/*
259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	m68k assembly mix routines
269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	Patrice Mandin
289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall*/
299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#if (defined(__m68k__) && !defined(__mcoldfire__)) && defined(__GNUC__)
319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallvoid SDL_MixAudio_m68k_U8(char* dst, char* src, long len, long volume, char* mix8)
329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall{
339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    __asm__ __volatile__ (
349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	"tstl	%2\n"
369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	beqs	stoploop_u8\n"
379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"mixloop_u8:\n"
389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Mix a sample */
409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#0,%%d0\n"
429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#0,%%d1\n"
439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%1@+,%%d0\n"	/* d0 = *src++ */
459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	sub	#128,%%d0\n"	/* d0 -= 128 */
469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	muls	%3,%%d0\n"	/* d0 *= volume (0<=volume<=128) */
479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%0@,%%d1\n"	/* d1 = *dst */
489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	asr	#7,%%d0\n"	/* d0 /= 128 (SDL_MIX_MAXVOLUME) */
499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	add	#128,%%d0\n"	/* d0 += 128 */
509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	add	%%d1,%%d0\n"
529682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
539682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%4@(%%d0:w),%0@+\n"
549682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
559682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Loop till done */
569682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
579682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	subql	#1,%2\n"
589682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bhis	mixloop_u8\n"
599682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"stoploop_u8:\n"
609682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
619682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* no return value */
629682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* input */
639682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"a"(dst), "a"(src), "d"(len), "d"(volume), "a"(mix8)
649682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* clobbered registers */
659682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"d0", "d1", "cc", "memory"
669682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 );
679682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}
689682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
699682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallvoid SDL_MixAudio_m68k_S8(char* dst, char* src, long len, long volume)
709682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall{
719682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    __asm__ __volatile__ (
729682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
739682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	"tstl	%2\n"
749682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	beqs	stoploop_s8\n"
759682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#-128,%%d2\n"
769682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#127,%%d3\n"
779682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"mixloop_s8:\n"
789682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
799682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Mix a sample */
809682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
819682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#0,%%d0\n"
829682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveq	#0,%%d1\n"
839682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
849682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%1@+,%%d0\n"	/* d0 = *src++ */
859682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	muls	%3,%%d0\n"	/* d0 *= volume (0<=volume<=128) */
869682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%0@,%%d1\n"	/* d1 = *dst */
879682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	asr	#7,%%d0\n"	/* d0 /= 128 (SDL_MIX_MAXVOLUME) */
889682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
899682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	add	%%d1,%%d0\n"
909682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
919682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmp	%%d2,%%d0\n"
929682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bges	lower_limit_s8\n"
939682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d2,%%d0\n"
949682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"lower_limit_s8:\n"
959682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
969682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmp	%%d3,%%d0\n"
979682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bles	upper_limit_s8\n"
989682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d3,%%d0\n"
999682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"upper_limit_s8:\n"
1009682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	moveb	%%d0,%0@+\n"
1019682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1029682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Loop till done */
1039682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1049682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	subql	#1,%2\n"
1059682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bhis	mixloop_s8\n"
1069682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"stoploop_s8:\n"
1079682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1089682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* no return value */
1099682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* input */
1109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"a"(dst), "a"(src), "d"(len), "d"(volume)
1119682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* clobbered registers */
1129682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"d0", "d1", "d2", "d3", "cc", "memory"
1139682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 );
1149682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}
1159682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1169682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallvoid SDL_MixAudio_m68k_S16MSB(short* dst, short* src, long len, long volume)
1179682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall{
1189682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    __asm__ __volatile__ (
1199682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1209682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	"tstl	%2\n"
1219682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	beqs	stoploop_s16msb\n"
1229682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	movel	#-32768,%%d2\n"
1239682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	movel	#32767,%%d3\n"
1249682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	lsrl	#1,%2\n"
1259682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"mixloop_s16msb:\n"
1269682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1279682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Mix a sample */
1289682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1299682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%1@+,%%d0\n"	/* d0 = *src++ */
1309682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	muls	%3,%%d0\n"	/* d0 *= volume (0<=volume<=128) */
1319682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%0@,%%d1\n"	/* d1 = *dst */
1329682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	extl	%%d1\n"		/* extend d1 to 32 bits */
1339682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	asrl	#7,%%d0\n"	/* d0 /= 128 (SDL_MIX_MAXVOLUME) */
1349682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1359682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	addl	%%d1,%%d0\n"
1369682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1379682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmpl	%%d2,%%d0\n"
1389682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bges	lower_limit_s16msb\n"
1399682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d2,%%d0\n"
1409682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"lower_limit_s16msb:\n"
1419682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1429682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmpl	%%d3,%%d0\n"
1439682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bles	upper_limit_s16msb\n"
1449682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d3,%%d0\n"
1459682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"upper_limit_s16msb:\n"
1469682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d0,%0@+\n"
1479682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1489682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Loop till done */
1499682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1509682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	subql	#1,%2\n"
1519682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bhis	mixloop_s16msb\n"
1529682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"stoploop_s16msb:\n"
1539682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1549682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* no return value */
1559682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* input */
1569682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"a"(dst), "a"(src), "d"(len), "d"(volume)
1579682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* clobbered registers */
1589682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"d0", "d1", "d2", "d3", "cc", "memory"
1599682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 );
1609682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}
1619682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1629682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hallvoid SDL_MixAudio_m68k_S16LSB(short* dst, short* src, long len, long volume)
1639682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall{
1649682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall    __asm__ __volatile__ (
1659682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1669682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	"tstl	%2\n"
1679682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	beqs	stoploop_s16lsb\n"
1689682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	movel	#-32768,%%d2\n"
1699682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	movel	#32767,%%d3\n"
1709682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	lsrl	#1,%2\n"
1719682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"mixloop_s16lsb:\n"
1729682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1739682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Mix a sample */
1749682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1759682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%1@+,%%d0\n"	/* d0 = *src++ */
1769682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	rorw	#8,%%d0\n"
1779682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	muls	%3,%%d0\n"	/* d0 *= volume (0<=volume<=128) */
1789682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%0@,%%d1\n"	/* d1 = *dst */
1799682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	rorw	#8,%%d1\n"
1809682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	extl	%%d1\n"		/* extend d1 to 32 bits */
1819682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	asrl	#7,%%d0\n"	/* d0 /= 128 (SDL_MIX_MAXVOLUME) */
1829682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1839682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	addl	%%d1,%%d0\n"
1849682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1859682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmpl	%%d2,%%d0\n"
1869682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bges	lower_limit_s16lsb\n"
1879682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d2,%%d0\n"
1889682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"lower_limit_s16lsb:\n"
1899682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1909682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	cmpl	%%d3,%%d0\n"
1919682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bles	upper_limit_s16lsb\n"
1929682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d3,%%d0\n"
1939682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"upper_limit_s16lsb:\n"
1949682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	rorw	#8,%%d0\n"
1959682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	move	%%d0,%0@+\n"
1969682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1979682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	/* Loop till done */
1989682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
1999682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	subql	#1,%2\n"
2009682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"	bhis	mixloop_s16lsb\n"
2019682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall"stoploop_s16lsb:\n"
2029682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall
2039682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* no return value */
2049682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* input */
2059682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"a"(dst), "a"(src), "d"(len), "d"(volume)
2069682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 : /* clobbered registers */
2079682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 	"d0", "d1", "d2", "d3", "cc", "memory"
2089682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall	 );
2099682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall}
2109682c8870b8ff5e4ac2e4c70b759f791c6f38c1fJesse Hall#endif
211