-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquickspawn1e.asm
More file actions
61 lines (56 loc) · 925 Bytes
/
quickspawn1e.asm
File metadata and controls
61 lines (56 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
####################################################
# This program simply spawns another process and
# then exits. Additional do-nothing code has been
# added to make it larger than other quickspawn1
# programs
###################################################
#spawn a new process
SET r4 7 #EXEC sys call id
PUSH r4 #push the sys call id onto the stack
TRAP #make the system call
#do-nothing code
SET r0 1
SET r0 2
SET r0 3
SET r0 4
SET r0 5
SET r0 6
SET r0 7
SET r0 8
SET r0 9
SET r0 10
SET r1 1
SET r1 2
SET r1 3
SET r1 4
SET r1 5
SET r1 6
SET r1 7
SET r1 8
SET r1 9
SET r1 10
SET r2 1
SET r2 2
SET r2 3
SET r2 4
SET r2 5
SET r2 6
SET r2 7
SET r2 8
SET r2 9
SET r2 10
SET r3 1
SET r3 2
SET r3 3
SET r3 4
SET r3 5
SET r3 6
SET r3 7
SET r3 8
SET r3 9
SET r3 10
#exit syscall
:exit
SET r4 0 #EXIT system call id
PUSH r4 #push sys call id on stack
TRAP #exit the program