-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.src.tokenlist
More file actions
147 lines (80 loc) · 1.67 KB
/
Copy pathtest.src.tokenlist
File metadata and controls
147 lines (80 loc) · 1.67 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
in line: //#define A(x,y) x-y
in line: //#define B 10
in line: //#define C B
in line: /*
in line: void printi(int x) {
in line: #asm
in line: MOV DX, SS:[BP+4]
in line: xor ah, ah
in line: mov al, dl
in line: mov dh, 10
in line: div dh
in line: test al, 0ffh
in line: jz single
in line: push ax
in line: xor ah, ah
in line: div dh
in line: test al, 0ffh
in line: jz two
in line: push ax
in line: mov dl, al
in line: add dl, '0'
in line: mov ah, 02h
in line: int 21h
in line: pop ax
in line: two:
in line: mov dl, ah
in line: add dl, '0'
in line: mov ah, 02h
in line: int 21h
in line: pop ax
in line: single:
in line: mov dl, ah
in line: add dl, '0'
in line: mov ah, 02h
in line: int 21h
in line: mov dl, 0ah
in line: int 21h
in line: #endasm
in line: return;
in line: }
in line:
in line: int fib(int x) {
in line: int a, b;
in line: if (x == 0 || x == 1)
in line: return 1;
in line: a = fib(x - 1);
in line: b = fib(x - 2);
in line: return a + b;
in line: }
in line:
in line: int main() {
in line: int x[10], i;
in line: int c,d;
in line: for (i = 0; i < 10; i++) {
in line: x[i]=fib(i);
in line: }
in line: for (i = 0; i < 10; i++) {
in line: printi(x[i]);
in line: }
in line: return 0;
in line: }
in line: */
in line:
in line: int main() {
(107, 4) keyword: int
(105, 0) identification: main
(112, 2) bound: (
(112, 3) bound: )
(112, 43) bound: {
in line: int a;
(107, 4) keyword: int
(105, 1) identification: a
(112, 42) bound: ;
in line: a = 60000;
(105, 2) identification: a
(112, 30) bound: =
(99, 0) constant: 60000 int
(112, 42) bound: ;
in line: }
(112, 44) bound: }