-
Notifications
You must be signed in to change notification settings - Fork 10
/
003_pas_motion.txt
47 lines (41 loc) · 935 Bytes
/
003_pas_motion.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
program motion;
// third interpreter of runmax _03
// shows subroutines, #locs=46
//#sign:Max: MAXBOX10: 27/05/2016 10:16:31
var ifrom, ito, mdelta: byte;
stime: integer;
procedure initrange;
begin
memo2.font.size:= 11;
ifrom:= 40;
ito:= 190;
mdelta:= (ito - ifrom);
stime:= 2
end;
procedure startmotion;
var i,a,ia, ordFromChr : byte;
ctmp: string;
begin
for ia:= 1 to 1 do begin
ctmp:= '';
for i:= ifrom to ito do begin
ctmp:= ctmp + chr(i);
ordFromChr:= ord(chr(i)) //solution
//memo1.lines.add(ctmp);
writeln(ctmp +' ord is:' +intToStr(ordFromChr));
sleep(stime);
end;
for i:= 1 to (mdelta) do begin
//if i < then
delete(ctmp, mdelta + 2-i, 1)
sleep(stime);
//memo1.lines.add(ctmp);
writeln(ctmp);
end;
end;
//sleep(200);
end;
begin
initrange;
startmotion
end.