Mail Archives: djgpp/1996/12/01/03:14:04
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 -