/[projet1]/public/atari/tools/rembrandt/DIVERS/EFFETS.S/GRIS.S
Defence Force logotype

Contents of /public/atari/tools/rembrandt/DIVERS/EFFETS.S/GRIS.S

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations)
Sat Apr 25 18:10:46 2009 UTC (10 years, 7 months ago) by dbug
File size: 510 byte(s)
Added Rembrandt and Forgotten Bits
1 *
2 *
3 * Transformation en niveaux de gris...
4 *
5 *
6 move.l ‚cran,a0
7 move.l taille_image,d7
8 lsr.l d7
9 .traite_pixel_suivant
10 move (a0),d0
11 move d0,d2
12 and #%11111,d2 D2=bleu
13 move d0,d1
14 lsr #6,d1
15 and #%11111,d1 D1=vert
16 rol #5,d0
17 and #%11111,d0 D0=rouge
18
19 add d1,d0
20 add d2,d0 D0=total des trois
21 mulu #100,d0
22 divu #300,d0
23 and #%11111,d0
24 move d0,d1
25 move d0,d2
26
27 ror #5,d0
28 lsl #6,d1
29 or d1,d0
30 or d2,d0
31
32 move d0,(a0)+
33 subq.l #1,d7
34 bne .traite_pixel_suivant

  ViewVC Help
Powered by ViewVC 1.1.26