www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/09/09:13:19

Date: Sun, 9 Jun 1996 15:56:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Grubb <Cgrubb AT mail DOT tds DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: inline asm
In-Reply-To: <31B8B160.6779@ccm.tdsnet.com>
Message-Id: <Pine.SUN.3.91.960609155420.342K-100000@is>
Mime-Version: 1.0

On Fri, 7 Jun 1996, Chris Grubb wrote:

> i'm used to pascal inline assembly..so could someone show me how I would convert this:
> 
> asm {
> 	mov ax,0x13;
> 	int 0x10;
> 	}
> 
> into something djgpp could compile?  thanks

You will have to study the GCC inline assembly facilities.  They are 
described in the GCC on-line docs (type "info gcc" from the DOS prompt).  
The syntax is very different (also much more powerful, since there is a 
way to get inline assembly *and* optimizations), and are too much to 
described here.

- Raw text -


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