www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/06/20:35:04

Sender: nate AT cartsys DOT com
Message-ID: <35CA4690.3BEBD45A@cartsys.com>
Date: Thu, 06 Aug 1998 17:13:04 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Rylan <rylan AT inbtekom DOT co DOT za>
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>

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019