-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA3-output3.txt
More file actions
53 lines (47 loc) · 2.8 KB
/
A3-output3.txt
File metadata and controls
53 lines (47 loc) · 2.8 KB
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
-------------------Instruction Table---------------------
address Op Oprnd
1 PUSHI 20
2 POPM 10000
3 PUSHI 10
4 POPM 10001
5 PUSHI 10
6 POPM 10002
7 PUSHI 15
8 POPM 10003
9 PUSHI 5
10 POPM 10004
11 PUSHI 1
12 POPM 10005
13 PUSHI 0
14 POPM 10005
15 PUSHI 1
16 POPM 10006
17 PUSHI 0
18 POPM 10006
19 PUSHM 10000
20 PUSHM 10001
21 GRT
22 JUMPZ 27
23 PUSHI 0
24 POPM 10005
25 PUSHI 1
26 POPM 10005
27 PUSHM 10003
28 PUSHM 10002
29 ADD
30 PUSHM 10004
31 EQU
32 JUMPZ 37
33 PUSHI 1
34 POPM 10006
35 PUSHI 0
36 POPM 10006
-------------------Symbol Table--------------------------
Identifier Memory Location Type
a 10000 integer
b 10001 integer
c 10002 integer
d 10003 integer
e 10004 integer
result 10005 boolean
result2 10006 boolean