blob: 6609a51f438e15d7a5f3a3890e0dd0394a454539 (
plain)
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
|
global str[32];
global str_i = 0;
main() {
local i;
strappend('H');
strappend('e');
strappend('l');
strappend('l');
strappend('o');
strappend(' ');
strappend('W');
strappend('o');
strappend('r');
strappend('l');
strappend('d');
strappend('!');
strappend('\n');
i = 0;
loop {
i = i + 1;
if (i > 9)
break;
print(str);
}
}
strappend(c) {
[str+str_i] = c;
str_i = str_i + 1;
}
print(s) {
loop {
if ([s] == 0)
break;
wrt [s];
s = s + 1;
}
}
|