-
Notifications
You must be signed in to change notification settings - Fork 0
/
output_inter
90 lines (90 loc) · 1.13 KB
/
output_inter
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
82
83
84
85
86
87
88
89
90
JMP 0 1
Next instruction: 1
Base: 1
Stack pointer: 0
---------------------------------------------
INT 0 3
Next instruction: 2
Base: 1
Stack pointer: 3
1 0
2 0
3 -1
---------------------------------------------
INT 0 1
Next instruction: 3
Base: 1
Stack pointer: 4
1 0
2 0
3 -1
4 0
---------------------------------------------
LIT 0 3
Next instruction: 4
Base: 1
Stack pointer: 5
1 0
2 0
3 -1
4 0
5 3
---------------------------------------------
STO 0 3
Next instruction: 5
Base: 1
Stack pointer: 4
1 0
2 0
3 -1
4 3
---------------------------------------------
INT 0 1
Next instruction: 6
Base: 1
Stack pointer: 5
1 0
2 0
3 -1
4 3
5 3
---------------------------------------------
INT 0 1
Next instruction: 7
Base: 1
Stack pointer: 6
1 0
2 0
3 -1
4 3
5 3
6 0
---------------------------------------------
LIT 0 2
Next instruction: 8
Base: 1
Stack pointer: 7
1 0
2 0
3 -1
4 3
5 3
6 0
7 2
---------------------------------------------
STO 0 5
Next instruction: 9
Base: 1
Stack pointer: 6
1 0
2 0
3 -1
4 3
5 3
6 2
---------------------------------------------
RET 0 0
Next instruction: -1
Base: 0
Stack pointer: 0
---------------------------------------------