[AD] patch to fix asm in djgpp? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi, today I tried to compile Allegro in GNU/Linux with djgpp
(cross-compiling), but I couple of .s files give me errors like
"unknown instruction... blah blah...", anyway, I fix the compilation
erros with these changes (see the patches), also, when I ran the
cross-compiled program in DOS it works (anyway, the code for the
joystick was never used but I think the code of djirqs.s is used).
Please, tell me if I fix something or if I worsen the things (I don't
known too much about asm).
.- David A. Capello - www.davidcapello.com.ar
--- allegro-4.1.12.old/src/dos/djirqs.s Sun Nov 9 15:43:10 2003
+++ allegro-4.1.12/src/dos/djirqs.s Fri Nov 28 23:42:56 2003
@@ -87,7 +87,7 @@
popw %fs ; \
popw %es ; \
popw %ds ; \
- ljmp *%cs:GLOBL(_irq_handler) + IRQ_OLDVEC + IRQ_SIZE*x ; \
+ ljmp %cs:GLOBL(_irq_handler) + IRQ_OLDVEC + IRQ_SIZE*x ; \
; \
get_out_##x: ; \
popal /* iret */ ; \
--- allegro-4.1.12.old/src/dos/gripfnc.s Sun Nov 9 15:43:10 2003
+++ allegro-4.1.12/src/dos/gripfnc.s Fri Nov 28 23:42:41 2003
@@ -19,7 +19,7 @@
#include "../i386/asmdefs.inc"
-#define GRIP_CALL lcall *GLOBL(GRIP_Thunk) + 8
+#define GRIP_CALL lcall GLOBL(GRIP_Thunk) + 8
.extern _GRIP_Thunk