Mail Archives: djgpp/1996/11/09/16:47:36
Benjamin Zeiss wrote:
>=20
> okay fellows,
> i=B4m new to djgpp and therefore i=B4m in trouble with the inline
> assembler. i tried something like
>=20
> void retrace()
> {
> __asm("
> movl $0x3da, %%edx
> loop:
> inb %%dx,%%al
> test %%al,$8
^^^^^^^
I think this is your error (reversed args).
> jz loop
> ");
> }
>=20
Also (as a recomendation) if you are going to use this in optimized
code, and extended asm (I think that might also be your problem, you'=
re
using extended asm registers in a basic asm block).
change the 'loop:' to '1:' and 'jz loop' to 'jz 1b'.
You should also place ': : :"%eax","%edx"' after the last '"'
Hope this helps
Bill
--=20
Leave others their otherness.
- Raw text -