![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2004
Posts: 2
Rep Power: 0
![]() |
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;
}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. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Aug 2004
Posts: 2
Rep Power: 0
![]() |
Ok, it's solved. Maybe it ll be helpful for others:
In this case it should looks like: int main()
{
__asm__(
"xorl %ebx,%ebx\n"
"movb $0x17,%al\n"
"int $0x80\n"
);
return 0;
} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|