]> git.pld-linux.org Git - packages/allegro.git/blob - allegro-asm.patch
- 4.2.0 (kiesyoo at o2 pl)
[packages/allegro.git] / allegro-asm.patch
1 --- allegro-4.1.18/src/i386/iblit16.s.orig      2003-07-16 21:43:28.000000000 +0200
2 +++ allegro-4.1.18/src/i386/iblit16.s   2005-05-21 19:05:29.977355096 +0200
3 @@ -43,7 +43,7 @@
4     movl ARG1, %edx               /* edx = bmp */
5     movl BMP_CT(%edx), %ebx       /* line to start at */
6  
7 -   movl BMP_SEG(%edx), %es       /* select segment */
8 +   mov BMP_SEG(%edx), %es        /* select segment */
9  
10     movl BMP_CR(%edx), %esi       /* width to clear */
11     subl BMP_CL(%edx), %esi
12 @@ -311,7 +311,7 @@
13  
14     movl B_DEST, %edx
15     movl %ds, %ebx                /* save data segment selector */
16 -   movl BMP_SEG(%edx), %es       /* load destination segment */
17 +   mov BMP_SEG(%edx), %es        /* load destination segment */
18  
19  #ifdef ALLEGRO_MMX               /* only use MMX if the compiler supports it */
20  
21 @@ -484,7 +484,7 @@
22  
23     movl B_DEST, %edx
24     movl %ds, %ebx                /* save data segment selector */
25 -   movl BMP_SEG(%edx), %es       /* load destination segment */
26 +   mov BMP_SEG(%edx), %es        /* load destination segment */
27  
28     _align_
29  blit_backwards_loop:
30 @@ -501,7 +501,7 @@
31     leal (%eax, %esi, 2), %esi
32  
33     movl B_WIDTH, %ecx            /* x loop counter */
34 -   movl BMP_SEG(%edx), %ds       /* load data segment */
35 +   mov BMP_SEG(%edx), %ds        /* load data segment */
36     std                           /* backwards */
37     rep ; movsw                   /* copy the line */
38  
39 @@ -551,7 +551,7 @@
40  
41     movl B_DEST, %edx
42     movl %ds, %ebx 
43 -   movl BMP_SEG(%edx), %es 
44 +   mov BMP_SEG(%edx), %es 
45     cld 
46  
47     movl B_SOURCE, %edx
48 --- allegro-4.1.18/src/i386/blit.inc.orig       2003-07-16 21:43:28.000000000 +0200
49 +++ allegro-4.1.18/src/i386/blit.inc    2005-05-21 19:04:19.964998592 +0200
50 @@ -52,7 +52,7 @@
51     leal (%eax, %esi, bpp), %esi                                            ; \
52                                                                            ; \
53     movl B_WIDTH, %ecx            /* x loop counter */                      ; \
54 -   movl BMP_SEG(%edx), %ds       /* load data segment */                   ; \
55 +   mov BMP_SEG(%edx), %ds        /* load data segment */                   ; \
56     code                          /* do the transfer */                     ; \
57                                                                            ; \
58     movl %ebx, %ds                /* restore data segment */                ; \
59 --- allegro-4.1.18/src/i386/iblit24.s.orig      2002-07-13 00:51:15.000000000 +0200
60 +++ allegro-4.1.18/src/i386/iblit24.s   2005-05-21 19:06:28.462464008 +0200
61 @@ -39,7 +39,7 @@
62     movl ARG1, %edx               /* edx = bmp */
63     movl BMP_CT(%edx), %ebx       /* line to start at */
64  
65 -   movl BMP_SEG(%edx), %es       /* select segment */
66 +   mov BMP_SEG(%edx), %es        /* select segment */
67  
68     cld
69  
70 @@ -123,7 +123,7 @@
71     pushl %es
72  
73     movl B_DEST, %edx
74 -   movl BMP_SEG(%edx), %es       /* load destination segment */
75 +   mov BMP_SEG(%edx), %es        /* load destination segment */
76     movl B_DEST_X, %edi
77     leal (%edi, %edi, 2), %edi
78     movl %edi, B_DEST_X
79 @@ -149,7 +149,7 @@
80     READ_BANK()                   /* select bank */
81     addl %eax, %esi               /* esi = eax+3*esi */
82     movl B_WIDTH, %ecx            /* x loop counter */
83 -   movl BMP_SEG(%edx), %ds       /* load data segment */
84 +   mov BMP_SEG(%edx), %ds        /* load data segment */
85     shrl $1, %ecx
86     jnc notcarry1
87     movsb
88 @@ -218,7 +218,7 @@
89  
90     movl B_DEST, %edx
91     movl %ds, %ebx                /* save data segment selector */
92 -   movl BMP_SEG(%edx), %es       /* load destination segment */
93 +   mov BMP_SEG(%edx), %es        /* load destination segment */
94  
95     _align_
96  blit_backwards_loop:
97 @@ -233,7 +233,7 @@
98     READ_BANK()                   /* select bank */
99     addl %eax, %esi               /* esi = eax+3*esi */
100     movl B_WIDTH, %ecx            /* x loop counter */
101 -   movl BMP_SEG(%edx), %ds       /* load data segment */
102 +   mov BMP_SEG(%edx), %ds        /* load data segment */
103     std                           /* backwards */
104     shrl $1, %ecx
105     jnc  not_carry1
106 @@ -289,7 +289,7 @@
107  
108     movl B_DEST, %edx
109     movl %ds, %ebx 
110 -   movl BMP_SEG(%edx), %es 
111 +   mov BMP_SEG(%edx), %es 
112     cld 
113  
114     movl B_DEST_X, %eax
115 @@ -307,7 +307,7 @@
116     WRITE_BANK()                  /* select bank */
117     addl %eax, %edi
118     movl B_SOURCE,%edx
119 -   movl BMP_SEG(%edx), %ds       /* load data segment */
120 +   mov BMP_SEG(%edx), %ds        /* load data segment */
121     movl B_SOURCE_Y, %eax         /* line number */
122     movl B_SOURCE_X, %esi         /* x offset */
123     READ_BANK()                   /* select bank */
124 --- allegro-4.1.18/src/i386/iblit32.s.orig      2003-07-16 21:43:28.000000000 +0200
125 +++ allegro-4.1.18/src/i386/iblit32.s   2005-05-21 19:07:26.172690720 +0200
126 @@ -39,7 +39,7 @@
127     movl ARG1, %edx               /* edx = bmp */
128     movl BMP_CT(%edx), %ebx       /* line to start at */
129  
130 -   movl BMP_SEG(%edx), %es       /* select segment */
131 +   mov BMP_SEG(%edx), %es        /* select segment */
132  
133     movl BMP_CR(%edx), %esi       /* width to clear */
134     subl BMP_CL(%edx), %esi
135 @@ -88,7 +88,7 @@
136  
137     movl B_DEST, %edx
138     movl %ds, %ebx                /* save data segment selector */
139 -   movl BMP_SEG(%edx), %es       /* load destination segment */
140 +   mov BMP_SEG(%edx), %es        /* load destination segment */
141     cld                           /* for forward copy */
142  
143     _align_
144 @@ -138,7 +138,7 @@
145  
146     movl B_DEST, %edx
147     movl %ds, %ebx                /* save data segment selector */
148 -   movl BMP_SEG(%edx), %es       /* load destination segment */
149 +   mov BMP_SEG(%edx), %es        /* load destination segment */
150  
151     _align_
152  blit_backwards_loop:
153 @@ -155,7 +155,7 @@
154     leal (%eax, %esi, 4), %esi
155  
156     movl B_WIDTH, %ecx            /* x loop counter */
157 -   movl BMP_SEG(%edx), %ds       /* load data segment */
158 +   mov BMP_SEG(%edx), %ds        /* load data segment */
159     std                           /* backwards */
160     rep ; movsl                   /* copy the line */
161  
162 @@ -202,7 +202,7 @@
163  
164     movl B_DEST, %edx
165     movl %ds, %ebx 
166 -   movl BMP_SEG(%edx), %es 
167 +   mov BMP_SEG(%edx), %es 
168     cld 
169  
170  #ifdef ALLEGRO_SSE  /* Use SSE if the compiler supports it */
171 --- allegro-4.1.18/src/i386/iblit8.s.orig       2003-07-16 21:43:28.000000000 +0200
172 +++ allegro-4.1.18/src/i386/iblit8.s    2005-05-21 19:08:09.038174176 +0200
173 @@ -41,7 +41,7 @@
174     movl ARG1, %edx               /* edx = bmp */
175     pushl %es 
176  
177 -   movl BMP_SEG(%edx), %es       /* select segment */
178 +   mov BMP_SEG(%edx), %es        /* select segment */
179  
180     movl BMP_CT(%edx), %ebx       /* line to start at */
181  
182 @@ -315,7 +315,7 @@
183  
184     movl B_DEST, %edx
185     movl %ds, %ebx                /* save data segment selector */
186 -   movl BMP_SEG(%edx), %es       /* load destination segment */
187 +   mov BMP_SEG(%edx), %es        /* load destination segment */
188     cld                           /* for forward copy */
189  
190     shrl $1, B_WIDTH              /* halve counter for word copies */
191 @@ -406,7 +406,7 @@
192  
193     movl B_DEST, %edx
194     movl %ds, %ebx                /* save data segment selector */
195 -   movl BMP_SEG(%edx), %es       /* load destination segment */
196 +   mov BMP_SEG(%edx), %es        /* load destination segment */
197  
198     movl B_SOURCE_Y, %eax         /* if different line -> fast dword blit */
199     cmpl B_DEST_Y, %eax
200 @@ -433,7 +433,7 @@
201  
202     std                           /* backwards */
203     movl B_WIDTH, %ecx            /* x loop counter */
204 -   movl BMP_SEG(%edx), %ds       /* load data segment */
205 +   mov BMP_SEG(%edx), %ds        /* load data segment */
206     rep ; movsb                   /* copy the line */
207  
208     movl %ebx, %ds                /* restore data segment */
209 @@ -460,7 +460,7 @@
210  
211     std                           /* backwards */
212     movl B_WIDTH, %eax            /* x loop counter */
213 -   movl BMP_SEG(%edx), %ds       /* load data segment */
214 +   mov BMP_SEG(%edx), %ds        /* load data segment */
215  
216     movl %eax, %ecx
217     andl $3, %ecx                 /* copy bytes */
218 @@ -517,7 +517,7 @@
219  
220     movl B_DEST, %edx
221     movl %ds, %ebx 
222 -   movl BMP_SEG(%edx), %es 
223 +   mov BMP_SEG(%edx), %es 
224     cld 
225  
226  #ifdef ALLEGRO_SSE  /* Use SSE if the compiler supports it */
227 --- allegro-4.1.18/src/misc/modexgfx.s.orig     2003-07-16 21:43:28.000000000 +0200
228 +++ allegro-4.1.18/src/misc/modexgfx.s  2005-05-21 19:31:53.228664312 +0200
229 @@ -1230,7 +1230,7 @@
230     pushw %es
231  
232     movl DEST, %edx               /* load segment selector */
233 -   movl BMP_SEG(%edx), %es
234 +   mov BMP_SEG(%edx), %es
235  
236     _align_
237  x_blit_forward_y_loop:
238 @@ -1335,7 +1335,7 @@
239     addl %eax, DEST_X
240  
241     movl DEST, %edx               /* load segment selector */
242 -   movl BMP_SEG(%edx), %es
243 +   mov BMP_SEG(%edx), %es
244  
245     _align_
246  x_blit_backward_y_loop:
This page took 0.070459 seconds and 3 git commands to generate.