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

Contents of /public/atari/tools/rembrandt/DIVERS/EFFETS.S/NEGATIF.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: 520 byte(s)
Added Rembrandt and Forgotten Bits
1 *
2 *
3 * N‚gativation de l'image
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
12 move d0,d2
13 and #%11111,d2 D2=bleu
14 move d0,d1
15 lsr #5,d1
16 and #%111111,d1 D1=vert
17 rol #5,d0
18 and #%11111,d0 D0=rouge
19
20 moveq #31,d3 Rouge=inverse rouge
21 sub d0,d3
22 moveq #63,d4 Vert=inverse vert
23 sub d1,d4
24 moveq #31,d5 Bleu=inverse bleu
25 sub d2,d5
26
27 ror #5,d3
28 lsl #5,d4
29 or d4,d3
30 or d5,d3
31
32 move d3,(a0)+
33 subq.l #1,d7
34 bne .traite_pixel_suivant

  ViewVC Help
Powered by ViewVC 1.1.26