www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/01/03:14:04

Date: Sun, 1 Dec 1996 09:53:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Aleksi Kallio <aleksi AT kalliot DOT pp DOT fi>
Cc: djgpp AT delorie DOT com
Subject: Re: Problems with inline-asm
In-Reply-To: <32a01a81.989473@news.eunet.fi>
Message-Id: <Pine.SUN.3.91.961201095109.12293U-100000@is>
Mime-Version: 1.0

On Sat, 30 Nov 1996, Aleksi Kallio wrote:

> I wrote this program: (and tried to compile it with DJGPP v2)
> 
> 
> void main()
>   {
>   
>   asm     mov   ax,0x0013;      
>   asm     int     10h;    
>   char *screen=0xa0000;
>   screen[13]=3;
>   asm     mov  ax,0x03;      
>   asm     int     10h;      
>   }

You are using the GCC inline assembly facility without reading about it 
first.  It is *very* different in syntax from what you are obviously used 
to with other DOS-based compilers.  Please read section 17.1 of the DJGPP 
FAQ list (available as v2/faq202b.zip from the same place you get DJGPP), 
it explains some basic issues and points you to sources of more detailed 
information.

- Raw text -


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