Mail Archives: djgpp/1999/02/28/19:07:02
Jimmy Rose wrote:
>
> Could some please post a translation of this assembler code that will
> compile with djgpp? It is Intel type code and apparently djgpp only accepts
> AT&T style assembler. Much thanks!
>
> ASM push ds
> ASM mov ah, 0x25
> ASM mov al, btVector
> ASM lds dx, pfISR
> ASM int 0x21
> ASM pop ds
You won't get away with a simple translation. This code is trying to
set a real-mode interrupt vector, which will fail, for several reasons,
to do what you want in DJGPP. It's going to take some work to convert
it. Start by reading FAQ chapters 17 and 18.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -