Package: allegro4.4 / 2:4.4.3.1-2

asm_fixes.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description: Various fixes to the assembly code
Author: Sam Hocevar <sam+deb@zoy.org>
--- a/src/i386/imisc.s
+++ b/src/i386/imisc.s
@@ -43,6 +43,7 @@
  *  Floating point vector by matrix multiplication routine.
  */
 FUNC(apply_matrix_f)
+.comm y,17,17
 
    #define MTX    ARG1
    #define X      ARG2
--- a/src/misc/icolconv.s
+++ b/src/misc/icolconv.s
@@ -23,6 +23,7 @@
  */
 
 
+#include "allegro/platform/alunixac.h"
 #include "src/i386/asmdefs.inc"
 
 
@@ -37,6 +38,7 @@
 
 .text
 
+#ifndef ALLEGRO_NO_ASM
 
 #ifdef ALLEGRO_MMX
 
@@ -3288,3 +3290,4 @@
 
 #endif  /* ALLEGRO_NO_COLORCOPY */
 
+#endif  /* ALLEGRO_NO_ASM */
--- a/src/misc/modexgfx.s
+++ b/src/misc/modexgfx.s
@@ -1009,7 +1009,7 @@
    _align_
 x_latched_blit_raligned:
    movl DEST, %edx               /* load segment selectors */
-   movl BMP_SEG(%edx), %eax 
+   movw BMP_SEG(%edx), %ax 
    movw %ax, %ds
    movw %ax, %es
    cld
@@ -1117,7 +1117,7 @@
    pushw %ds
 
    movl DEST, %edx               /* load segment selectors */
-   movl BMP_SEG(%edx), %eax 
+   movw BMP_SEG(%edx), %ax 
    movw %ax, %ds
    movw %ax, %es
    cld