forked from CodieTamida/compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output2.txt
106 lines (104 loc) · 991 Bytes
/
output2.txt
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
PUSHI 10
PUSHI 2
A
PUSHI 3
M
PUSHI 3
PUSHI 3
A
PUSHI 8
M
D
POPM 5000
PUSHM 5000
PUSHI 2
A
PUSHI 3
M
PUSHI 1
S
PUSHI 3
M
POPM 5001
PUSHM 5000
PUSHM 5001
S
PUSHM 5000
PUSHM 5001
A
M
PUSHM 5000
PUSHM 5000
D
D
POPM 5002
PUSHM 5000
PUSHM 5001
GRT
JUMP0 50
PUSHM 5000
PUSHM 5002
GRT
JUMP0 46
PUSHM 5000
POPM 5003
JUMP 48
PUSHM 5002
POPM 5003
LABEL
JUMP 60
PUSHM 5001
PUSHM 5002
GRT
JUMP0 57
PUSHM 5001
POPM 5003
JUMP 59
PUSHM 5002
POPM 5003
LABEL
LABEL
PUSHM 5003
PUSHM 5001
EQU
JUMP0 97
PUSHM 5003
PUSHM 5001
EQU
JUMP0 96
PUSHM 5003
PUSHM 5001
EQU
JUMP0 95
PUSHM 5003
PUSHM 5001
EQU
JUMP0 80
PUSHI 1
SOUT
JUMP 94
PUSHI 0
SOUT
SIN
POPM 5000
SIN
POPM 5001
SIN
POPM 5002
PUSHM 5000
PUSHM 5001
A
PUSHM 5002
A
SOUT
LABEL
LABEL
LABEL
LABEL
Symbol Table:
Identifier Address Type
----------------------------------------
a 5000 INTEGER
b 5001 INTEGER
c 5002 INTEGER
max 5003 INTEGER