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
4 movl ARG1, %edx /* edx = bmp */
5 movl BMP_CT(%edx), %ebx /* line to start at */
7 - movl BMP_SEG(%edx), %es /* select segment */
8 + mov BMP_SEG(%edx), %es /* select segment */
10 movl BMP_CR(%edx), %esi /* width to clear */
11 subl BMP_CL(%edx), %esi
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 */
19 #ifdef ALLEGRO_MMX /* only use MMX if the compiler supports it */
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 */
31 leal (%eax, %esi, 2), %esi
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 */
37 rep ; movsw /* copy the line */
43 - movl BMP_SEG(%edx), %es
44 + mov BMP_SEG(%edx), %es
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
51 leal (%eax, %esi, bpp), %esi ; \
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 */ ; \
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
62 movl ARG1, %edx /* edx = bmp */
63 movl BMP_CT(%edx), %ebx /* line to start at */
65 - movl BMP_SEG(%edx), %es /* select segment */
66 + mov BMP_SEG(%edx), %es /* select segment */
74 - movl BMP_SEG(%edx), %es /* load destination segment */
75 + mov BMP_SEG(%edx), %es /* load destination segment */
77 leal (%edi, %edi, 2), %edi
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 */
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 */
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 */
110 - movl BMP_SEG(%edx), %es
111 + mov BMP_SEG(%edx), %es
116 WRITE_BANK() /* select bank */
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
127 movl ARG1, %edx /* edx = bmp */
128 movl BMP_CT(%edx), %ebx /* line to start at */
130 - movl BMP_SEG(%edx), %es /* select segment */
131 + mov BMP_SEG(%edx), %es /* select segment */
133 movl BMP_CR(%edx), %esi /* width to clear */
134 subl BMP_CL(%edx), %esi
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 */
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 */
154 leal (%eax, %esi, 4), %esi
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 */
160 rep ; movsl /* copy the line */
166 - movl BMP_SEG(%edx), %es
167 + mov BMP_SEG(%edx), %es
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
174 movl ARG1, %edx /* edx = bmp */
177 - movl BMP_SEG(%edx), %es /* select segment */
178 + mov BMP_SEG(%edx), %es /* select segment */
180 movl BMP_CT(%edx), %ebx /* line to start at */
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 */
190 shrl $1, B_WIDTH /* halve counter for word copies */
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 */
198 movl B_SOURCE_Y, %eax /* if different line -> fast dword blit */
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 */
208 movl %ebx, %ds /* restore data segment */
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 */
217 andl $3, %ecx /* copy bytes */
222 - movl BMP_SEG(%edx), %es
223 + mov BMP_SEG(%edx), %es
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 @@
232 movl DEST, %edx /* load segment selector */
233 - movl BMP_SEG(%edx), %es
234 + mov BMP_SEG(%edx), %es
237 x_blit_forward_y_loop:
238 @@ -1335,7 +1335,7 @@
241 movl DEST, %edx /* load segment selector */
242 - movl BMP_SEG(%edx), %es
243 + mov BMP_SEG(%edx), %es
246 x_blit_backward_y_loop: