delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/12/03:45:17

Date: Mon, 12 Feb 2001 09:42:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jeremiah <xdebugx AT emeraldis DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: inline asm
In-Reply-To: <000a01c094af$716c8960$888aaad0@0021682320>
Message-ID: <Pine.SUN.3.91.1010212094219.12969L@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 11 Feb 2001, Jeremiah wrote:

> How do i call interrupts with inline assembly in djgpp compiler.  like:
>  int 25h

You don't need inline assembly for that, use __dpmi_int instead.  The
DJGPP FAQ shows how to do that in section 18.2 and other sections of
chapter 18.

Issuing an INT instruction in assembly is not a good idea with DJGPP,
since your program runs in protected mode, so the INT instruction is
handled by protected-mode handler first.  Who knows what that will do?

- Raw text -


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