src/video/ataricommon/SDL_ataric2p.S
branchSDL-1.2
changeset 4375 a52047c790a2
parent 4159 a1b03ba2fcd0
child 5657 529d23724144
equal deleted inserted replaced
4374:124629b76853 4375:a52047c790a2
    36 
    36 
    37 /* ------------	Conversion C2P, 8 bits ------------ */
    37 /* ------------	Conversion C2P, 8 bits ------------ */
    38 
    38 
    39 	.text
    39 	.text
    40 _SDL_Atari_C2pConvert8:
    40 _SDL_Atari_C2pConvert8:
       
    41 #if !defined(__mcoldfire__)
    41 	movel	sp@(4),c2p_source
    42 	movel	sp@(4),c2p_source
    42 	movel	sp@(8),c2p_dest
    43 	movel	sp@(8),c2p_dest
    43 	movel	sp@(12),c2p_width
    44 	movel	sp@(12),c2p_width
    44 	movel	sp@(16),c2p_height
    45 	movel	sp@(16),c2p_height
    45 	movel	sp@(20),c2p_dblligne
    46 	movel	sp@(20),c2p_dblligne
   281 
   282 
   282 	subqw	#1,c2p_row
   283 	subqw	#1,c2p_row
   283 	bne		SDL_Atari_C2p8_rowloop	
   284 	bne		SDL_Atari_C2p8_rowloop	
   284 
   285 
   285 	moveml	sp@+,d2-d7/a2-a6
   286 	moveml	sp@+,d2-d7/a2-a6
       
   287 #endif
   286 	rts
   288 	rts
   287 
   289 
   288 /* ------------	Conversion C2P, 4 bits ------------ */
   290 /* ------------	Conversion C2P, 4 bits ------------ */
   289 
   291 
   290 _SDL_Atari_C2pConvert4:
   292 _SDL_Atari_C2pConvert4:
       
   293 #if !defined(__mcoldfire__)
   291 	movel	sp@(4),c2p_source
   294 	movel	sp@(4),c2p_source
   292 	movel	sp@(8),c2p_dest
   295 	movel	sp@(8),c2p_dest
   293 	movel	sp@(12),c2p_width
   296 	movel	sp@(12),c2p_width
   294 	movel	sp@(16),c2p_height
   297 	movel	sp@(16),c2p_height
   295 	movel	sp@(20),c2p_dblligne
   298 	movel	sp@(20),c2p_dblligne
   391 	addl	c2p_dstpitch,a1
   394 	addl	c2p_dstpitch,a1
   392 
   395 
   393 	dbra	d7,c2p4_bcly
   396 	dbra	d7,c2p4_bcly
   394 
   397 
   395 	moveml	sp@+,d2-d7/a2-a6
   398 	moveml	sp@+,d2-d7/a2-a6
       
   399 #endif
   396 	rts
   400 	rts
   397 
   401 
   398 /* ------------	Conversion of a light palette in 4 bits ------------ */
   402 /* ------------	Conversion of a light palette in 4 bits ------------ */
   399 
   403 
   400 _SDL_Atari_C2pConvert4_pal:
   404 _SDL_Atari_C2pConvert4_pal:
       
   405 #if !defined(__mcoldfire__)
   401 	/* a0 is a 256-word light palette */
   406 	/* a0 is a 256-word light palette */
   402 	movel	sp@(4),a0
   407 	movel	sp@(4),a0
   403 
   408 
   404 	moveml	d2-d3,sp@-
   409 	moveml	d2-d3,sp@-
   405 
   410 
   421 
   426 
   422 	addql	#4,a1
   427 	addql	#4,a1
   423 	dbra	d3,c2p_pal_initbcl
   428 	dbra	d3,c2p_pal_initbcl
   424 
   429 
   425 	moveml	sp@+,d2-d3
   430 	moveml	sp@+,d2-d3
   426 
   431 #endif
   427 	rts
   432 	rts
   428 
   433 
   429 /* ------------	Buffers ------------ */
   434 /* ------------	Buffers ------------ */
   430 
   435 
   431 	.bss
   436 	.bss