delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/12/14:41:06

Date: Mon, 13 Mar 2000 00:25:09 +0500
Message-Id: <200003121925.AAA01180@midpec.com>
From: Prashant TR <tr AT midpec DOT com>
To: Robert S Whitlock <roberts DOT j DOT whitlock AT juno DOT com>
CC: djgpp AT delorie DOT com
In-reply-to: <20000312.125101.-765853.0.roberts.j.whitlock@juno.com> (message
from Robert S Whitlock on Sun, 12 Mar 2000 12:50:47 -0500)
Subject: Re: Inline ASM
References: <20000312 DOT 125101 DOT -765853 DOT 0 DOT roberts DOT j DOT whitlock AT juno DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Robert S Whitlock <roberts DOT j DOT whitlock AT juno DOT com> writes:

> Okay, I know there's something simple I'm not getting... I just can't
> find it.

It's in the FAQ. There's a whole section on inline assembly.

> I'm trying to inline asm this:
> 
> mov ax, 0x03
> int 0x10

It's like this:

__asm__("movw $0x3, %ax;
	 int $0x10;");

But calling interrupts like this in protected mode is a bad idea.
See the __dpmi_int functiont (type info libc alpha __dpmi_int).

- Raw text -


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