delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/17/18:26:07

Message-Id: <199903172326.SAA12772@delorie.com>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: mrscreen AT hotmail DOT com (Heliophobe)
Date: Wed, 17 Mar 1999 23:22:48 +0000
MIME-Version: 1.0
Subject: Re: parse error before `{'
CC: djgpp AT delorie DOT com
X-mailer: Pegasus Mail for Win32 (v2.42a)
Reply-To: djgpp AT delorie DOT com

On 16 Mar 99 at 21:52, Heliophobe wrote:

>   It -should- be (though I'm not totally sure, since I  don't use inline
> asm much, and never access ports in asm):
> 
>  asm("outb %al,%dx"::"a" (value),"d" (port));

That looks almost right; you're using the extended form though 
so need two % signs before the register names, not just one.

-- 
George

- Raw text -


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