delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/15/12:19:17

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: assembly
Date: 15 Oct 2001 16:11:45 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 22
Message-ID: <9qf1s1$51v$1@nets3.rz.RWTH-Aachen.DE>
References: <9qf07f$1t6$1 AT cyan DOT nl DOT gxn DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1003162305 5183 137.226.32.75 (15 Oct 2001 16:11:45 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 15 Oct 2001 16:11:45 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Bart van den Burg <bart AT bart99 DOT tmfweb DOT nl> wrote:
[...]

>  asm {
>   mov ax, 0x13
>   int 0x10
>  }

> what's wrong here?

The asm syntax. This piece of source is not compatible with GCC ---
it's meant for some other compiler's idea of how inline assembly
should be written. Probably Borland's.

Moreover, it's written in Intel-style assembly, rather than the AT&T
style expected by GCC and its tools.



-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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