Sender: nate AT cartsys DOT com Message-ID: <36D9CD28.377D971F@cartsys.com> Date: Sun, 28 Feb 1999 15:11:36 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Assembler help References: <01be6352$ae148100$227332d1 AT rose1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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