Also might want an exit call on the end..  otherwise it'll keep on executing 
whatever is after the code you load in to memory..  keep reading down a bit in 
that article, it mentions this and shows you how to do an exit syscall in asm..

        ; for the program to properly exit instead of segfaulting right here
        ; ( it doesn't seem to like to fall off the end of a program ), call 
        ; a sys_exit

        mov     eax,1
        mov     ebx,0
        int     80h

Joshua Roys
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to