-
Notifications
You must be signed in to change notification settings - Fork 21
/
out
81 lines (81 loc) · 1.36 KB
/
out
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
pc=0
Loading word num1 to R[9]
Result in R[9] = 23
pc=1
Loading word num2 to R[10]
Result in R[10] = 3
pc=2
Loading immediate value .. 0 into R[12]
Result in R[12] = 0
pc=3
Loading immediate value .. 0 into R[11]
Result in R[11] = 0
pc=4
PC before BEQ : 4
PC after BEQ : 5
pc=5
Reading R[11] ... R[11]=0
Reading R[11] ... R[11]=0
Adding .. 0 23
Result in R[11] = 23
pc=6
Reading R[12] ... R[12]=0
Reading R[12] ... R[12]=0
Adding .. 0 1
Result in R[12] = 1
pc=7
PC before JUMP : 7
PC after JUMP : 4
pc=4
PC before BEQ : 4
PC after BEQ : 5
pc=5
Reading R[11] ... R[11]=23
Reading R[11] ... R[11]=23
Adding .. 23 23
Result in R[11] = 46
pc=6
Reading R[12] ... R[12]=1
Reading R[12] ... R[12]=1
Adding .. 1 1
Result in R[12] = 2
pc=7
PC before JUMP : 7
PC after JUMP : 4
pc=4
PC before BEQ : 4
PC after BEQ : 5
pc=5
Reading R[11] ... R[11]=46
Reading R[11] ... R[11]=46
Adding .. 46 23
Result in R[11] = 69
pc=6
Reading R[12] ... R[12]=2
Reading R[12] ... R[12]=2
Adding .. 2 1
Result in R[12] = 3
pc=7
PC before JUMP : 7
PC after JUMP : 4
pc=4
PC before BEQ : 4
PC after BEQ : 8
pc=8
Loading immediate value .. 1 into R[2]
Result in R[2] = 1
pc=9
Moving from R[11] to R[4]
Result in R[4] = 69
pc=10
IMPLEMENTING SYSCALL
Printing value in R[4]
69
pc=11
Storing R[11] to word num3
pc=12
Loading immediate value .. 10 into R[2]
Result in R[2] = 10
pc=13
IMPLEMENTING SYSCALL
Exiting program ...