This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .text | |
global _start | |
_start: | |
mov eax, 2 ; SYS_FORK Op Code | |
int 0x80 | |
cmp eax, 0 ;If the return value is 0, we are in the child process | |
jz child | |
parent: | |
mov edx, len ;Move msg length to edx |