-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.10.profe.txt
100 lines (85 loc) · 966 Bytes
/
output.10.profe.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
#source "input.txt"
' * int i (offset 0)
' * real r (offset 2)
' * char c (offset 6)
' Invocation to the main function
call main
halt
#line 7
f:
' * Parameters
' * int pi (offset 8)
' * real pr (offset 4)
' * Local variables
' * real lr (offset -4)
' * int li (offset -6)
enter 6
#line 11
push bp
pushi -6
addi
push bp
pushi 8
addi
loadi
storei
#line 12
push bp
pushi -4
addi
push bp
pushi 4
addi
loadf
storef
#line 13
' * Return
push bp
pushi 8
addi
loadi
ret 2, 6, 6
#line 17
main:
' * Parameters
' * Local variables
' * record((integer x int)x(character x char)) pair (offset -3)
enter 3
#line 23
pusha 0
pushi 3
storei
#line 24
pusha 6
pushb 97
storeb
#line 25
pusha 2
pushf 3.8
storef
#line 26
push bp
pushi -3
addi
pushi 0
addi
pusha 0
loadi
storei
#line 27
push bp
pushi -3
addi
pushi 2
addi
pusha 6
loadb
storeb
#line 28
pusha 0
loadi
pusha 2
loadf
call f
popi
ret 0, 3, 0