Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC