src/video/ataricommon/SDL_ataric2p.S
changeset 734 0310bb01091f
parent 297 f6ffac90895c
child 1086 93207759e065
     1.1 --- a/src/video/ataricommon/SDL_ataric2p.S	Wed Nov 05 23:11:05 2003 +0000
     1.2 +++ b/src/video/ataricommon/SDL_ataric2p.S	Wed Nov 12 18:45:48 2003 +0000
     1.3 @@ -26,70 +26,274 @@
     1.4  #endif
     1.5  
     1.6  /*
     1.7 - *	Chunky to planar conversion routine
     1.8 - *	1 byte/pixel -> 4 or 8 bit planes
     1.9 - *
    1.10 - *	Patrice Mandin
    1.11 - *	Xavier Joubert
    1.12 - */
    1.13 +	Chunky to planar conversion routine
    1.14 +	1 byte/pixel -> 4 or 8 bit planes
    1.15  
    1.16 -/* ------------	Function pointers ------------ */
    1.17 +	Patrice Mandin
    1.18 +	Xavier Joubert
    1.19 +	Mikael Kalms
    1.20 +*/
    1.21  
    1.22 -	.globl	_Atari_C2pInit
    1.23 -	.globl	_Atari_C2pConvert
    1.24 -
    1.25 -	.data
    1.26 -
    1.27 -	.even
    1.28 -	.comm	_Atari_C2pInit,4
    1.29 -	.comm	_Atari_C2pConvert,4
    1.30 -
    1.31 -/* ------------	Conversion Table C2P ------------ */
    1.32 -
    1.33 -	.globl	_Atari_table_c2p
    1.34 -
    1.35 -	.data
    1.36 -
    1.37 -	.comm	_Atari_table_c2p,2048
    1.38 -
    1.39 -/* ------------	Init table C2P, 8 bits ------------ */
    1.40 -
    1.41 -	.globl	_Atari_C2pInit8
    1.42 -
    1.43 -	.text
    1.44 -_Atari_C2pInit8:
    1.45 -	movel	d2,sp@-
    1.46 -
    1.47 -	lea	_Atari_table_c2p,a0
    1.48 -	movew	#255,d0
    1.49 -c2p_initbcl:
    1.50 -#if defined (__M68020__)
    1.51 -	lea	a0@(0,d0:w:8),a1
    1.52 -#else
    1.53 -	movew	d0,d2
    1.54 -	lslw	#3,d2
    1.55 -	lea	a0@(0,d2:w),a1
    1.56 -#endif
    1.57 -	moveq	#7,d1
    1.58 -c2p_initbyte:
    1.59 -	btst	d1,d0
    1.60 -	sne	d2
    1.61 -	negw	d2
    1.62 -	moveb	d2,a1@(0,d1:w)
    1.63 -
    1.64 -	dbra	d1,c2p_initbyte
    1.65 -
    1.66 -	dbra	d0,c2p_initbcl
    1.67 -
    1.68 -	movel	sp@+,d2
    1.69 -	rts
    1.70 +	.globl	_SDL_Atari_C2pConvert
    1.71 +	.globl	_SDL_Atari_C2pConvert8
    1.72 +	.globl	_SDL_Atari_C2pConvert4
    1.73 +	.globl	_SDL_Atari_C2pConvert4_pal
    1.74 +	.globl	_SDL_Atari_table_c2p
    1.75  
    1.76  /* ------------	Conversion C2P, 8 bits ------------ */
    1.77  
    1.78 -	.globl	_Atari_C2pConvert8
    1.79 +	.text
    1.80 +_SDL_Atari_C2pConvert8:
    1.81 +	movel	sp@(4),c2p_source
    1.82 +	movel	sp@(8),c2p_dest
    1.83 +	movel	sp@(12),c2p_width
    1.84 +	movel	sp@(16),c2p_height
    1.85 +	movel	sp@(20),c2p_dblligne
    1.86 +	movel	sp@(24),c2p_srcpitch
    1.87 +	movel	sp@(28),c2p_dstpitch
    1.88  
    1.89 -	.text
    1.90 -_Atari_C2pConvert8:
    1.91 +	moveml	d2-d7/a2-a6,sp@-
    1.92 +
    1.93 +	movel	c2p_source,c2p_cursrc
    1.94 +	movel	c2p_dest,c2p_curdst
    1.95 +	movel	#0x0f0f0f0f,d4
    1.96 +	movel	#0x00ff00ff,d5
    1.97 +	movel	#0x55555555,d6
    1.98 +	movew	c2p_height+2,c2p_row
    1.99 +	movew	c2p_width+2,d0
   1.100 +	andw	#-8,d0
   1.101 +	movew	d0,c2p_rowlen
   1.102 +
   1.103 +SDL_Atari_C2p8_rowloop:
   1.104 +
   1.105 +	movel	c2p_cursrc,a0
   1.106 +	movel	c2p_curdst,a1
   1.107 +
   1.108 +	movel	a0,a2
   1.109 +	addw	c2p_rowlen,a2
   1.110 +
   1.111 +	movel	a0@+,d0
   1.112 +	movel	a0@+,d1
   1.113 +	movel	a0@+,d2
   1.114 +	movel	a0@+,d3
   1.115 +/*
   1.116 +	d0 = a7a6a5a4a3a2a1a0 b7b6b5b4b3b2b1b0 c7c6c5c4c3c2c1c0 d7d6d5d4d3d2d1d0
   1.117 +	d1 = e7e6e5e4e3e2e1e0 f7f6f5f4f3f2f1f0 g7g6g5g4g3g2g1g0 h7h6h5h4h3h2h1h0
   1.118 +	d2 = i7i6i5i4i3i2i1i0 j7j6j5j4j3j2j1j0 k7k6k5k4k3k2k1k0 l7l6l5l4l3l2l1l0
   1.119 +	d3 = m7m6m5m4m3m2m1m0 n7n6n5n4n3n2n1n0 o7o6o5o4o3o2o1o0 p7p6p5p4p3p2p1p0
   1.120 +*/
   1.121 +	movel	d1,d7
   1.122 +	lsrl	#4,d7
   1.123 +	eorl	d0,d7
   1.124 +	andl	d4,d7
   1.125 +	eorl	d7,d0
   1.126 +	lsll	#4,d7
   1.127 +	eorl	d7,d1
   1.128 +
   1.129 +	movel	d3,d7
   1.130 +	lsrl	#4,d7
   1.131 +	eorl	d2,d7
   1.132 +	andl	d4,d7
   1.133 +	eorl	d7,d2
   1.134 +	lsll	#4,d7
   1.135 +	eorl	d7,d3
   1.136 +
   1.137 +	movel	d2,d7
   1.138 +	lsrl	#8,d7
   1.139 +	eorl	d0,d7
   1.140 + 	andl	d5,d7
   1.141 +	eorl	d7,d0
   1.142 +	lsll	#8,d7
   1.143 +	eorl	d7,d2
   1.144 +
   1.145 +	movel	d3,d7
   1.146 +	lsrl	#8,d7
   1.147 +	eorl	d1,d7
   1.148 + 	andl	d5,d7
   1.149 +	eorl	d7,d1
   1.150 +	lsll	#8,d7
   1.151 +	eorl	d7,d3
   1.152 +/*
   1.153 +	d0 = a7a6a5a4e7e6e5e4 i7i6i5i4m7m6m5m4 c7c6c5c4g7g6g5g4 k7k6k5k4o7o6o5o4
   1.154 +	d1 = a3a2a1a0e3e2e1e0 i3i2i1i0m3m2m1m0 c3c2c1c0g3g2g1g0 k3k2k1k0o3o2o1o0
   1.155 +	d2 = b7b6b5b4f7f6f5f4 j7j6j5j4n7n6n5n4 d7d6d5d4h7h6h5h4 l7l6l5l4p7p6p5p4
   1.156 +	d3 = b3b2b1b0f3f2f1f0 j3j2j1j0n3n2n1n0 d3d2d1d0h3h2h1h0 l3l2l1l0p3p2p1p0
   1.157 +*/
   1.158 +	bras	SDL_Atari_C2p8_start
   1.159 +
   1.160 +SDL_Atari_C2p8_pix16:
   1.161 +
   1.162 +	movel	a0@+,d0
   1.163 +	movel	a0@+,d1
   1.164 +	movel	a0@+,d2
   1.165 +	movel	a0@+,d3
   1.166 +/*
   1.167 +	d0 = a7a6a5a4a3a2a1a0 b7b6b5b4b3b2b1b0 c7c6c5c4c3c2c1c0 d7d6d5d4d3d2d1d0
   1.168 +	d1 = e7e6e5e4e3e2e1e0 f7f6f5f4f3f2f1f0 g7g6g5g4g3g2g1g0 h7h6h5h4h3h2h1h0
   1.169 +	d2 = i7i6i5i4i3i2i1i0 j7j6j5j4j3j2j1j0 k7k6k5k4k3k2k1k0 l7l6l5l4l3l2l1l0
   1.170 +	d3 = m7m6m5m4m3m2m1m0 n7n6n5n4n3n2n1n0 o7o6o5o4o3o2o1o0 p7p6p5p4p3p2p1p0
   1.171 +*/
   1.172 +	movel	d1,d7
   1.173 +	lsrl	#4,d7
   1.174 +	movel	a3,a1@+
   1.175 +	eorl	d0,d7
   1.176 +	andl	d4,d7
   1.177 +	eorl	d7,d0
   1.178 +	lsll	#4,d7
   1.179 +	eorl	d7,d1
   1.180 +
   1.181 +	movel	d3,d7
   1.182 +	lsrl	#4,d7
   1.183 +	eorl	d2,d7
   1.184 +	andl	d4,d7
   1.185 +	eorl	d7,d2
   1.186 +	movel	a4,a1@+
   1.187 +	lsll	#4,d7
   1.188 +	eorl	d7,d3
   1.189 +
   1.190 +	movel	d2,d7
   1.191 +	lsrl	#8,d7
   1.192 +	eorl	d0,d7
   1.193 +	andl	d5,d7
   1.194 +	eorl	d7,d0
   1.195 +	movel	a5,a1@+
   1.196 +	lsll	#8,d7
   1.197 +	eorl	d7,d2
   1.198 +
   1.199 +	movel	d3,d7
   1.200 +	lsrl	#8,d7
   1.201 +	eorl	d1,d7
   1.202 +	andl	d5,d7
   1.203 +	eorl	d7,d1
   1.204 +	movel	a6,a1@+
   1.205 +	lsll	#8,d7
   1.206 +	eorl	d7,d3
   1.207 +/*
   1.208 +	d0 = a7a6a5a4e7e6e5e4 i7i6i5i4m7m6m5m4 c7c6c5c4g7g6g5g4 k7k6k5k4o7o6o5o4
   1.209 +	d1 = a3a2a1a0e3e2e1e0 i3i2i1i0m3m2m1m0 c3c2c1c0g3g2g1g0 k3k2k1k0o3o2o1o0
   1.210 +	d2 = b7b6b5b4f7f6f5f4 j7j6j5j4n7n6n5n4 d7d6d5d4h7h6h5h4 l7l6l5l4p7p6p5p4
   1.211 +	d3 = b3b2b1b0f3f2f1f0 j3j2j1j0n3n2n1n0 d3d2d1d0h3h2h1h0 l3l2l1l0p3p2p1p0
   1.212 +*/
   1.213 +
   1.214 +SDL_Atari_C2p8_start:
   1.215 +
   1.216 +	movel	d2,d7
   1.217 +	lsrl	#1,d7
   1.218 +	eorl	d0,d7
   1.219 +	andl	d6,d7
   1.220 +	eorl	d7,d0
   1.221 +	addl	d7,d7
   1.222 +	eorl	d7,d2
   1.223 +
   1.224 +	movel	d3,d7
   1.225 +	lsrl	#1,d7
   1.226 +	eorl	d1,d7
   1.227 +	andl	d6,d7
   1.228 +	eorl	d7,d1
   1.229 +	addl	d7,d7
   1.230 +	eorl	d7,d3
   1.231 +/*
   1.232 +	d0 = a7b7a5b5e7f7e5f5 i7j7i5j5m7n7m5n5 c7d7c5d5g7h7g5h5 k7l7k5l5o7p7o5p5
   1.233 +	d1 = a3b3a1b1e3f3e1f1 i3j3i1j1m3n3m1n1 c3d3c1d1g3h3g1h1 k3l3k1l1o3p3o1p1
   1.234 +	d2 = a6b6a4b4e6f6e4f4 i6j6i4j4m6n6m4n4 c6d6c4d4g6h6g4h4 k6l6k4l4o6p6o4p4
   1.235 +	d3 = a2b2a0b0e2f2e0f0 i2j2i0j0m2n2m0n0 c2d2c0d0g2h2g0h0 k2l2k0l0o2p2o0p0
   1.236 +*/
   1.237 +	movew	d2,d7
   1.238 +	movew	d0,d2
   1.239 +	swap	d2
   1.240 +	movew	d2,d0
   1.241 +	movew	d7,d2
   1.242 +
   1.243 +	movew	d3,d7
   1.244 +	movew	d1,d3
   1.245 +	swap	d3
   1.246 +	movew	d3,d1
   1.247 +	movew	d7,d3
   1.248 +/*
   1.249 +	d0 = a7b7a5b5e7f7e5f5 i7j7i5j5m7n7m5n5 a6b6a4b4e6f6e4f4 i6j6i4j4m6n6m4n4
   1.250 +	d1 = a3b3a1b1e3f3e1f1 i3j3i1j1m3n3m1n1 a2b2a0b0e2f2e0f0 i2j2i0j0m2n2m0n0
   1.251 +	d2 = c7d7c5d5g7h7g5h5 k7l7k5l5o7p7o5p5 c6d6c4d4g6h6g4h4 k6l6k4l4o6p6o4p4
   1.252 +	d3 = c3d3c1d1g3h3g1h1 k3l3k1l1o3p3o1p1 c2d2c0d0g2h2g0h0 k2l2k0l0o2p2o0p0
   1.253 +*/
   1.254 +	movel	d2,d7
   1.255 +	lsrl	#2,d7
   1.256 +	eorl	d0,d7
   1.257 +	andl	#0x33333333,d7
   1.258 +	eorl	d7,d0
   1.259 +	lsll	#2,d7
   1.260 +	eorl	d7,d2
   1.261 +
   1.262 +	movel	d3,d7
   1.263 +	lsrl	#2,d7
   1.264 +	eorl	d1,d7
   1.265 +	andl	#0x33333333,d7
   1.266 +	eorl	d7,d1
   1.267 +	lsll	#2,d7
   1.268 +	eorl	d7,d3
   1.269 +/*
   1.270 +	d0 = a7b7c7d7e7f7g7h7 i7j7k7l7m7n7o7p7 a6b6c6d6e6f6g6h6 i6j6k6l6m6n6o6p6
   1.271 +	d1 = a3b3c3d3e3f3g3h3 i3j3k3l3m3n3o3p3 a2b2c2d2e2f2g2h2 i2j2k2l2m2n2o2p2
   1.272 +	d2 = a5b5c5d5e5f5g5h5 i5j5k5l5m5n5o5p5 a4b4c4d4e4f4g4h4 i4j4k4l4m4n4o4p4
   1.273 +	d3 = a1b1c1d1e1f1g1h1 i1j1k1l1m1n1o1p1 a0b0c0d0e0f0g0h0 i0j0k0l0m0n0o0p0
   1.274 +*/
   1.275 +	swap	d0
   1.276 +	swap	d1
   1.277 +	swap	d2
   1.278 +	swap	d3
   1.279 +
   1.280 +	movel	d0,a6
   1.281 +	movel	d2,a5
   1.282 +	movel	d1,a4
   1.283 +	movel	d3,a3
   1.284 +
   1.285 +	cmpl	a0,a2
   1.286 +	bgt	SDL_Atari_C2p8_pix16
   1.287 +
   1.288 +	movel	a3,a1@+
   1.289 +	movel	a4,a1@+
   1.290 +	movel	a5,a1@+
   1.291 +	movel	a6,a1@+
   1.292 +
   1.293 +	/* Double the line ? */
   1.294 +
   1.295 +	movel	c2p_srcpitch,d0
   1.296 +	movel	c2p_dstpitch,d1
   1.297 +
   1.298 +	tstl	c2p_dblligne
   1.299 +	beqs	SDL_Atari_C2p8_nodblline
   1.300 +
   1.301 +	movel	c2p_curdst,a0
   1.302 +	movel	a0,a1
   1.303 +	addl	d1,a1
   1.304 +
   1.305 +	movew	c2p_width+2,d7
   1.306 +	lsrw	#4,d7
   1.307 +	subql	#1,d7
   1.308 +SDL_Atari_C2p8_dblloop:
   1.309 +	movel	a0@+,a1@+
   1.310 +	movel	a0@+,a1@+
   1.311 +	movel	a0@+,a1@+
   1.312 +	movel	a0@+,a1@+
   1.313 +	dbra	d7,SDL_Atari_C2p8_dblloop
   1.314 +
   1.315 +	addl	d1,c2p_curdst
   1.316 +
   1.317 +SDL_Atari_C2p8_nodblline:
   1.318 +
   1.319 +	/* Next line */
   1.320 +
   1.321 +	addl	d0,c2p_cursrc
   1.322 +	addl	d1,c2p_curdst
   1.323 +
   1.324 +	subqw	#1,c2p_row
   1.325 +	bne	SDL_Atari_C2p8_rowloop	
   1.326 +
   1.327 +	moveml	sp@+,d2-d7/a2-a6
   1.328 +	rts
   1.329 +
   1.330 +/* ------------	Conversion C2P, 4 bits ------------ */
   1.331 +
   1.332 +_SDL_Atari_C2pConvert4:
   1.333  	movel	sp@(4),c2p_source
   1.334  	movel	sp@(8),c2p_dest
   1.335  	movel	sp@(12),c2p_width
   1.336 @@ -102,138 +306,7 @@
   1.337  
   1.338  	movel	c2p_source,a0
   1.339  	movel	c2p_dest,a1
   1.340 -	lea	_Atari_table_c2p,a2
   1.341 -	movel	#0x000f0001,d3
   1.342 -#if defined(__M68020__)
   1.343 -	moveq	#0,d0
   1.344 -#endif
   1.345 -	
   1.346 -	movel	c2p_height,d7
   1.347 -	subql	#1,d7
   1.348 -c2p8_bcly:
   1.349 -	movel	a0,a4	| Save start address of source
   1.350 -	movel	a1,a5	| Save start address of dest
   1.351 -
   1.352 -	| Conversion
   1.353 -                 
   1.354 -	movel	c2p_width,d6
   1.355 -	lsrw	#4,d6
   1.356 -	subql	#1,d6
   1.357 -c2p8_bclx:
   1.358 -	| Octets 0-7
   1.359 -	
   1.360 -	moveq	#0,d1
   1.361 -	moveq	#0,d2
   1.362 -	moveq	#7,d5
   1.363 -c2p8_bcl07:
   1.364 -#if defined(__M68020__)
   1.365 -	moveb	a0@+,d0
   1.366 -	lea	a2@(0,d0:w:8),a3
   1.367 -#else
   1.368 -	moveq	#0,d0
   1.369 -	moveb	a0@+,d0
   1.370 -	lslw	#3,d0
   1.371 -	lea	a2@(0,d0:w),a3
   1.372 -#endif
   1.373 -	lsll	#1,d1
   1.374 -	lsll	#1,d2
   1.375 -	orl	a3@+,d1
   1.376 -	orl	a3@,d2
   1.377 -	dbra	d5,c2p8_bcl07
   1.378 -
   1.379 -	movepl	d1,a1@(0)
   1.380 -	movepl	d2,a1@(8)
   1.381 -	addw	d3,a1
   1.382 -	swap	d3
   1.383 -	
   1.384 -	| Octets 8-15
   1.385 -
   1.386 -	moveq	#0,d1
   1.387 -	moveq	#0,d2
   1.388 -	moveq	#7,d5
   1.389 -c2p8_bcl815:
   1.390 -#if defined(__M68020__)
   1.391 -	moveb	a0@+,d0
   1.392 -	lea	a2@(0,d0:w:8),a3
   1.393 -#else
   1.394 -	moveq	#0,d0
   1.395 -	moveb	a0@+,d0
   1.396 -	lslw	#3,d0
   1.397 -	lea	a2@(0,d0:w),a3
   1.398 -#endif
   1.399 -	lsll	#1,d1
   1.400 -	lsll	#1,d2
   1.401 -	orl	a3@+,d1
   1.402 -	orl	a3@,d2
   1.403 -	dbra	d5,c2p8_bcl815
   1.404 -
   1.405 -	movepl	d1,a1@(0)
   1.406 -	movepl	d2,a1@(8)
   1.407 -	addw	d3,a1
   1.408 -	swap	d3
   1.409 -
   1.410 -	dbra	d6,c2p8_bclx
   1.411 -
   1.412 -	| Double line ?
   1.413 -
   1.414 -	tstl	c2p_dblligne
   1.415 -	beq	c2p8_nodblligne
   1.416 -
   1.417 -	movel	a5,a6			| src line
   1.418 -	movel	a5,a1			| dest line
   1.419 -	addl	c2p_dstpitch,a1
   1.420 -
   1.421 -	movel	c2p_width,d6
   1.422 -	lsrw	#2,d6
   1.423 -	subql	#1,d6
   1.424 -c2p8_copydbl:
   1.425 -	movel	a6@+,a1@+
   1.426 -	dbra	d6,c2p8_copydbl
   1.427 -
   1.428 -	addl	c2p_dstpitch,a5
   1.429 -c2p8_nodblligne:
   1.430 -
   1.431 -	| Next line
   1.432 -
   1.433 -	movel	a4,a0		
   1.434 -	addl	c2p_srcpitch,a0
   1.435 -	movel	a5,a1
   1.436 -	addl	c2p_dstpitch,a1
   1.437 -
   1.438 -	dbra	d7,c2p8_bcly
   1.439 -
   1.440 -	moveml	sp@+,d2-d7/a2-a6
   1.441 -	rts
   1.442 -
   1.443 -/* ------------	Init table C2P, 4 bits ------------ */
   1.444 -
   1.445 -	.globl	_Atari_C2pInit4
   1.446 -
   1.447 -	.text
   1.448 -_Atari_C2pInit4:
   1.449 -	/* Nothing to do */
   1.450 -	/* work is done in convert_c2p_pal */
   1.451 -	rts
   1.452 -
   1.453 -/* ------------	Conversion C2P, 4 bits ------------ */
   1.454 -
   1.455 -	.globl	_Atari_C2pConvert4
   1.456 -
   1.457 -	.text
   1.458 -_Atari_C2pConvert4:
   1.459 -	movel	sp@(4),c2p_source
   1.460 -	movel	sp@(8),c2p_dest
   1.461 -	movel	sp@(12),c2p_width
   1.462 -	movel	sp@(16),c2p_height
   1.463 -	movel	sp@(20),c2p_dblligne
   1.464 -	movel	sp@(24),c2p_srcpitch
   1.465 -	movel	sp@(28),c2p_dstpitch
   1.466 -
   1.467 -	moveml	d2-d7/a2-a6,sp@-
   1.468 -
   1.469 -	movel	c2p_source,a0
   1.470 -	movel	c2p_dest,a1
   1.471 -	lea	_Atari_table_c2p,a2
   1.472 +	lea	_SDL_Atari_table_c2p,a2
   1.473  	movel	#0x00070001,d3
   1.474  #if defined(__M68020__)
   1.475  	moveq	#0,d0
   1.476 @@ -328,18 +401,15 @@
   1.477  	moveml	sp@+,d2-d7/a2-a6
   1.478  	rts
   1.479  
   1.480 -* ------------	Conversion of a light palette in 4 bits ------------ */
   1.481 +/* ------------	Conversion of a light palette in 4 bits ------------ */
   1.482  
   1.483 -	.globl	_Atari_C2pConvert4_pal
   1.484 -
   1.485 -	.text
   1.486 -_Atari_C2pConvert4_pal:
   1.487 +_SDL_Atari_C2pConvert4_pal:
   1.488  	/* a0 is a 256-word light palette */
   1.489  	movel	sp@(4),a0
   1.490  
   1.491  	moveml	d2-d3,sp@-
   1.492  
   1.493 -	lea	_Atari_table_c2p,a1
   1.494 +	lea	_SDL_Atari_table_c2p,a1
   1.495  	movew	#255,d3
   1.496  c2p_pal_initbcl:
   1.497  	movew	a0@+,d0
   1.498 @@ -367,11 +437,17 @@
   1.499  	.data
   1.500  
   1.501  	.even
   1.502 -	.comm	c2p_source,4
   1.503 -	.comm	c2p_dest,4
   1.504 -	.comm	c2p_width,4
   1.505 -	.comm	c2p_height,4
   1.506 -	.comm	c2p_dblligne,4
   1.507 -	.comm	c2p_srcpitch,4
   1.508 -	.comm	c2p_dstpitch,4
   1.509 +	.comm	_SDL_Atari_C2pConvert,4
   1.510 +	.comm	_SDL_Atari_table_c2p,2048
   1.511  
   1.512 +	.comm	c2p_source,4	/* Source framebuffer */
   1.513 +	.comm	c2p_dest,4	/* Destination framebuffer */
   1.514 +	.comm	c2p_width,4	/* Width of zone to convert */
   1.515 +	.comm	c2p_height,4	/* Height of zone to convert */
   1.516 +	.comm	c2p_dblligne,4	/* Double the lines while converting ? */
   1.517 +	.comm	c2p_srcpitch,4	/* Source pitch */
   1.518 +	.comm	c2p_dstpitch,4	/* Destination pitch */
   1.519 +	.comm	c2p_cursrc,4	/* Current source line */
   1.520 +	.comm	c2p_curdst,4	/* Current destination line */
   1.521 +	.comm	c2p_rowlen,2	/* Line length in bytes */
   1.522 +	.comm	c2p_row,2	/* Current line number */