Sender: nate AT cartsys DOT com Message-ID: <35CA4690.3BEBD45A@cartsys.com> Date: Thu, 06 Aug 1998 17:13:04 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Rylan CC: djgpp AT delorie DOT com Subject: Re: How to generate an interrupt in AT&T asm References: <6qbcfi$pn7$1 AT news2 DOT saix DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Rylan wrote: > > Hi, > > In DJGPP's inline assembler format, how can I generate a BIOS int? > > If I cannot do it directly, how can I call __dpmi_int from an inline > assembler function, i. e. how do I pass __dpmi_int the correct parameters > while calling from inside an inline assembler statement? Somebody correct me if I'm wrong, but a normal `int' instruction should work, as long as you haven't installed a protected-mode interrupt handler for that int (unlikely). Ex: asm volatile ("movw $0x0013, %%ax; int $0x10" : : : "ax"); -- Nate Eldredge nate AT cartsys DOT com