home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p11
/
tst
/
read1.pcat
< prev
next >
Wrap
Text File
|
2006-03-05
|
864b
|
37 lines
(* This program tests IRloadAddr and IRreadInt. *)
program is
procedure foo (j1, j2, j3: integer) is
begin
write ("About to call readInt (j1, j2, j3)...");
write ("PLEASE ENTER 3 INTEGERS:");
read (j1, j2, j3);
write ("j1 = ", j1);
write ("j2 = ", j2);
write ("j3 = ", j3);
write ("About to call readInt (i1, i2, i3)...");
write ("PLEASE ENTER 3 INTEGERS:");
read (i1, i2, i3);
write ("i1 = ", i1);
write ("i2 = ", i2);
write ("i3 = ", i3);
return;
end;
var i1, i2, i3: integer := 0;
begin
write ("About to call readInt(i)...");
write ("PLEASE ENTER AN INTEGER:");
read (i1);
write ("i1 = ", i1);
write ("About to call readInt (i1, i2, i3)...");
write ("PLEASE ENTER 3 INTEGERS:");
read (i1, i2, i3);
write ("i1 = ", i1);
write ("i2 = ", i2);
write ("i3 = ", i3);
foo (1,2,3);
end;