Date: Sun, 1 Dec 1996 09:53:55 +0200 (IST) From: Eli Zaretskii To: Aleksi Kallio Cc: djgpp AT delorie DOT com Subject: Re: Problems with inline-asm In-Reply-To: <32a01a81.989473@news.eunet.fi> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.