Mail Archives: djgpp/1998/09/19/22:46:13
Mthimkhulu Molekwa wrote:
> >asm("movw 0x0003, %%ax;"
> > "int $0x10;"
> > : : "%eax");
> >
>
> Correct me if I'm wrong. Should the above code be:
>
> asm("movw $0x0003, %%ax\n\t"
> "int $0x10\n\t"
> : : "%eax");
>
> ===> replaced "0x0003" by "$0x0003" and ";" by "\n\t"
Ok, your right about the "$", but the ";" works just fine, and I feel that it
looks better/is easier to type than "\n\t".
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
hanges in the
> compilation options.
You might want to use "-gstabs+" for better debugging. There are some (rare)
situations when normal "-g" doesn't do the trick.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -