changeset 4375:a52047c790a2 SDL-1.2

Disable C2P routines for Coldfire CPUs
author Patrice Mandin <patmandin@gmail.com>
date Fri, 06 Nov 2009 21:17:16 +0000
parents 124629b76853
children 40e4536ad0c3
files src/video/ataricommon/SDL_ataric2p.S
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_ataric2p.S	Fri Nov 06 18:06:01 2009 +0000
+++ b/src/video/ataricommon/SDL_ataric2p.S	Fri Nov 06 21:17:16 2009 +0000
@@ -38,6 +38,7 @@
 
 	.text
 _SDL_Atari_C2pConvert8:
+#if !defined(__mcoldfire__)
 	movel	sp@(4),c2p_source
 	movel	sp@(8),c2p_dest
 	movel	sp@(12),c2p_width
@@ -283,11 +284,13 @@
 	bne		SDL_Atari_C2p8_rowloop	
 
 	moveml	sp@+,d2-d7/a2-a6
+#endif
 	rts
 
 /* ------------	Conversion C2P, 4 bits ------------ */
 
 _SDL_Atari_C2pConvert4:
+#if !defined(__mcoldfire__)
 	movel	sp@(4),c2p_source
 	movel	sp@(8),c2p_dest
 	movel	sp@(12),c2p_width
@@ -393,11 +396,13 @@
 	dbra	d7,c2p4_bcly
 
 	moveml	sp@+,d2-d7/a2-a6
+#endif
 	rts
 
 /* ------------	Conversion of a light palette in 4 bits ------------ */
 
 _SDL_Atari_C2pConvert4_pal:
+#if !defined(__mcoldfire__)
 	/* a0 is a 256-word light palette */
 	movel	sp@(4),a0
 
@@ -423,7 +428,7 @@
 	dbra	d3,c2p_pal_initbcl
 
 	moveml	sp@+,d2-d3
-
+#endif
 	rts
 
 /* ------------	Buffers ------------ */