Thread: Inline Asm
View Single Post
Old Aug 8th, 2004, 9:28 AM   #1
apacz
Newbie
 
Join Date: Aug 2004
Posts: 2
Rep Power: 0 apacz is on a distinguished road
Hi
I got a problem with inline asm example from some tutor. The source looks like:
int main()
{
    __asm__("
        xorl %ebx,%ebx
        movb $0x17,%al
        int $0x80
    ");
 return 0;
}
And now i got an error:
apacz@dstool:~/coding/tests/bo$ gcc asm.c
asm.c:3:17: missing terminating " character
asm.c: In function `main':
asm.c:4: error: parse error before "xorl"
asm.c:7:9: missing terminating " character

It should be fine couse it's from tutor.. Why something like this appears?

apacz,
Regards.
apacz is offline   Reply With Quote