Thread: Inline Asm
View Single Post
Old Aug 8th, 2004, 4:25 PM   #2
apacz
Newbie
 
Join Date: Aug 2004
Posts: 2
Rep Power: 0 apacz is on a distinguished road
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;
}
apacz is offline   Reply With Quote