Disable C2P routines for Coldfire CPUs SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Fri, 06 Nov 2009 21:17:16 +0000
branchSDL-1.2
changeset 4375a52047c790a2
parent 4374 124629b76853
child 4376 40e4536ad0c3
Disable C2P routines for Coldfire CPUs
src/video/ataricommon/SDL_ataric2p.S
     1.1 --- a/src/video/ataricommon/SDL_ataric2p.S	Fri Nov 06 18:06:01 2009 +0000
     1.2 +++ b/src/video/ataricommon/SDL_ataric2p.S	Fri Nov 06 21:17:16 2009 +0000
     1.3 @@ -38,6 +38,7 @@
     1.4  
     1.5  	.text
     1.6  _SDL_Atari_C2pConvert8:
     1.7 +#if !defined(__mcoldfire__)
     1.8  	movel	sp@(4),c2p_source
     1.9  	movel	sp@(8),c2p_dest
    1.10  	movel	sp@(12),c2p_width
    1.11 @@ -283,11 +284,13 @@
    1.12  	bne		SDL_Atari_C2p8_rowloop	
    1.13  
    1.14  	moveml	sp@+,d2-d7/a2-a6
    1.15 +#endif
    1.16  	rts
    1.17  
    1.18  /* ------------	Conversion C2P, 4 bits ------------ */
    1.19  
    1.20  _SDL_Atari_C2pConvert4:
    1.21 +#if !defined(__mcoldfire__)
    1.22  	movel	sp@(4),c2p_source
    1.23  	movel	sp@(8),c2p_dest
    1.24  	movel	sp@(12),c2p_width
    1.25 @@ -393,11 +396,13 @@
    1.26  	dbra	d7,c2p4_bcly
    1.27  
    1.28  	moveml	sp@+,d2-d7/a2-a6
    1.29 +#endif
    1.30  	rts
    1.31  
    1.32  /* ------------	Conversion of a light palette in 4 bits ------------ */
    1.33  
    1.34  _SDL_Atari_C2pConvert4_pal:
    1.35 +#if !defined(__mcoldfire__)
    1.36  	/* a0 is a 256-word light palette */
    1.37  	movel	sp@(4),a0
    1.38  
    1.39 @@ -423,7 +428,7 @@
    1.40  	dbra	d3,c2p_pal_initbcl
    1.41  
    1.42  	moveml	sp@+,d2-d3
    1.43 -
    1.44 +#endif
    1.45  	rts
    1.46  
    1.47  /* ------------	Buffers ------------ */