Continued to lesson 28
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,28 @@
|
||||
|
||||
; %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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user