www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/07/11:56:57.3

From: "Max Erhard" <erhard AT banstead DOT u-net DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <36EE7597 DOT C0DF33F4 AT home DOT com>
Subject: Re: parse error before `{'
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <lUsO2.164$6C.21280@newsr2.u-net.net>
NNTP-Posting-Host: 195.102.196.148
X-Complaints-To: news AT u-net DOT net
X-Trace: newsr2.u-net.net 923425425 195.102.196.148 (Tue, 06 Apr 1999 20:03:45 BST)
NNTP-Posting-Date: Tue, 06 Apr 1999 20:03:45 BST
Organization: (Posted via) U-NET Internet Ltd.
X-Real-Host: onafgrnq.h-arg.pbz
Date: Tue, 6 Apr 1999 20:07:20 +0100
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

asm looks a bit wrong, your using the intel syntax where as djgpp uses the
at/t version, don't ask me any questions about what its like though, I dont
know much.

BRAD KRANE wrote in message <36EE7597 DOT C0DF33F4 AT home DOT com>...
>
>    Why is it that when I declaire a function that it always gives me a
>parse error on the line right after the first { in the function? How do
>I fix this. I put an example of one of the functions that I made that
>gives me the error sorry about the caps.
>Thanks.
>
>                                    ~NuclearMayhem~
>
>unsigned char outp(short int port, unsigned char value)
>{
>    asm {                         /*  GIVES ME THE PARSE ERROR RIGHT
>HERE  */
>        XOR AX, AX
>        XOR DX, DX
>        MOV DX, port
>        MOV AL, value
>        OUT DX, AL
>    }
>}
>


- Raw text -


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