29 lines
331 B
NASM
29 lines
331 B
NASM
|
|
; %include '../lib/fl.asm' ; local
|
|
%include 'lib/fl.asm' ; build.sh
|
|
|
|
SECTION .data
|
|
childMsg db 'Child process', 0h
|
|
parentMsg db 'Parent process', 0h
|
|
|
|
SECTION .text
|
|
global _start
|
|
|
|
_start:
|
|
mov eax, 2
|
|
int 80h
|
|
|
|
cmp eax, 0
|
|
jz child
|
|
|
|
parent:
|
|
mov eax, parentMsg
|
|
call sprintLF
|
|
call quit
|
|
|
|
child:
|
|
mov eax, childMsg
|
|
call sprintLF
|
|
call quit
|
|
|