I've added fork() to a7out after adding some comments to src/cmd/init.s.

There is a test program to demonstrate fork working.
This commit is contained in:
Warren Toomey
2016-03-03 09:23:48 +10:00
parent 644bee06a0
commit 6547aa98be
3 changed files with 105 additions and 62 deletions
+20
View File
@@ -0,0 +1,20 @@
" Fork text code
main:
sys fork
jmp parent
child:
lac d1
sys write; childmsg; 3
sys exit
parent:
lac d1
sys write; parentmsg; 4
sys exit
d1: 1 " stdout fd
parentmsg: <pa>; <re>; <nt>; 012000
childmsg: <ch>; <il>; <d 012