Trailing-Edge
-
PDP-10 Archives
-
decuslib10-04
-
43,50334/tops01.gno
There are no other files named tops01.gno in the archive.
%switch qz false
%if qz
%nextlesson pub("TOPQ");
%nocontrolc
%ifend qz
%algol start:
%init
begin
procedure pause;
if nopause then nopause:= false else
begin loop: outsymbol(9); outsymbol(9);
write("Push RETURN -->");
getline; newline;
if stop then begin stop:=false; goto endoflesson end;
skip:=false;
if answerlength > 0 then
begin pos:= 1;
if not here(endofline) then
begin
pos:= 1; if anywhere("DAY") then
begin write("You cannot use the ""DAY"" command now, since you are[N]");
write("communicating with the lesson program, not with the monitor[N]");
write("You must first leave the lesson. A ""."" in column 1 tells you[N]");
write("that you are communicating with the monitor.[N]");
end else
begin
pos:= 1; if anywhere("RETURN") then
begin write("When I said ""push RETURN"" I meant push the button[N]");
write("marked ""RETURN"" or ""CARRIAGE RETURN"" on your terminal.[N]");
write("I did not mean for you to type the whole word ""RETURN"".[N]");
end else
if anywhere("STOP") then
begin write("To stop you must write the character ""%"", push RETURN,[N]");
write("and then you write ""STOP"".[N]");
end else
begin
write("The computer only expected a RETURN from you.[N]");
write("Push the button labelled ""RETURN"" or ""CARRIAGE RETURN"".[N]");
end; end;
goto loop;
end; end;
end;
procedure page;
begin pause; nopause:= true; outsymbol(12); newline;
end;
procedure qmsg;
begin
write("You should not type the double quotes ("").[N]");
write("I use them as a normal quoting device, for instace to[N]");
write("ENCLOSE pieces of text that you should type.[N]");
write("They are not part of such text.[N]");
end;
%TEXT T1:
%if qz
TOPQTEACH Release 4, July 1978.
===============================
TOPQ01 - Talking to the DEC 10.
%ifnot qz
TOPSTEACH Release 4, July 1978.
===============================
TOPS01 - Talking to the DEC 10.
%ifend qz
==============================
%ifnot qz
There is a manual for this course. The manual contains all instructive
texts within the course. You can take the course without the manual,
but it is better to get it, especially if you are using a display
terminal. The filename of the manual is "TOPS.MAN". Ask your computing
center how to get a copy of it.
%text
%ifend qz
When starting to use the DEC 10, you must first get connected to the
computer. Since this is done in different ways for different kinds
of terminals, I do not describe the procedure here. You can check
that you really are connected to the computer by pushing the
"RETURN" key on your terminal. If the computer responds with a "."
in the first column of a new line, then you are connected.
%text monitor:
When you first get connected to the computer you are
communicating with a program called the MONITOR.
The monitor supervises everything that goes on
inside the computer. It will also interpret commands
that you type on your terminal. It is the monitor that
types the "." at the beginning of the line, saying:
"Here I am, at your service!"
%QUESTION T1Q1:
Which key can you push to check that you are in connection to the
computer?
%RIGHT RETURN
%NOEXTRA
%RIGHT
%extra
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%algol qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%wrong .
You pushed the dot (".") key instead of the RETURN key.
%WRONG
%WRONG
%GOTO T1
%TEXT T2:
When you are connected to the monitor, you can try some simple
commands. You can for example try the "DAY" command by typing
the word "DAY" followed by typing the "RETURN" key. The computer
will then answer with the date and the time.
Please note that just now you are communicating with
the lesson, you are NOT communicating with
the monitor. You can try out the "DAY" command only
if you first leave this lesson. Therefore wait until
the end of the lesson before you try it.
%QUESTION T2Q1:
Which key do you push to get the computer to respond to your command?
%EXTRA
%RIGHT return
%noextra
%RIGHT
%extra
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%alg qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%noextra
%WRONG day
You cannot try the "DAY" command now, since you are communicating
with the lesson program, not with the monitor. You must wait until
you have exited from the lesson. You know that you are communicating with
the monitor if the computer writes a "." in column 1.
%wrong .
A period (dot) is typed by the monitor. It means that the
monitor is ready to accept a command from you.
%WRONG
Which was the last key that you should push after having typed in
the word "DAY"?
%WRONG
You push the "RETURN" key to get the computer to respond.
%GOTO NEXT
%TEXT T3:
The delete key for correcting typing errors.
===========================================
When you are typing information to the computer, you may some
times make a typing error. But the computer will usually not
do what you tell it until you push the "RETURN" key.
If you become aware of your error before pushing
the "RETURN" key, then you can immediately correct it,.
To do that, you push the "DELETE" key on your terminal.
On some terminals, that key is marked "DEL" or "RUB OUT".
Say that you wanted to type "SWEDEN" and by mistake you
typed "SWD". You then push the "DELETE" key to remove the
erroneous "D", and then you continue with "EDEN".
%QUESTION T3Q1:
Try this out by typing "SWD" then pushing "DELETE" and then
typing "EDEN". Finally, as always, end your message to the
computer by pushing the "RETURN" key.
%NOEXTRA
%RIGHT SWEDEN
%wrong SVEDEN
The second letter in "SWEDEN" is "W" and not "V".
%extra
%neutral "
I did not mean for you to push the quote (") key on your teminal.
Try again.
%goto repeat
%wrong "
%alg qmsg;
%wrong _
Your answer contained the character "_". Perhaps you mistook this
character for the delete key? Look for a button labelled
"DELETE" or "RUB OUT" or something like that, and use upper shift
if this is required.
%wrong delet
You should not type the word "DELETE" but push the single button
labelled "DELETE" or "RUB OUT" or something like that on your
terminal.
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%alg qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%noextra
%WRONG day
You cannot try the "DAY" command now, since you are communicating
with the lesson program, not with the monitor. You must wait until
you have exited from the lesson. You know that you are communicating with
the monitor if the computer writes a "." in column 1.
%wrong stop
If you want to stop now, type %.
%WRONG
Your answer was after deletions(RUB OUTS) received by the computer as:
%algol begin integer char;
write(answercopy);
for pos:= 1 step 1 until answerlength do
begin
char:= answer.[pos]; if char > 91 or char < 65 and char # 32 then
begin write("Perhaps you mistook the character """); outsymbol(char);
write(""" for the delete key?[N]");
goto out;
end;
end;
out: end;
%WRONG
%same
%WRONG
%GOTO T3
%TEXT T4:
You can delete as many characters as you wish as long as
you stay within the line. Therefore, if you have written "SWDEN" and
want to correct your error, you push the "DELETE" key three times to
delete succesively N, E, and D. Now, only "SW" is left
in the memory of the computer, and you can continue with "EDEN".
%QUESTION T4Q1:
Try that out by first typing "SWDEN", then deleting three times
and then typing "EDEN".
%RIGHT SWEDEN
%wrong SVEDEN
The second letter in "SWEDEN" is "W" and not "V".
%extra
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%alg qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%noextra
%WRONG day
You cannot try the "DAY" command now, since you are communicating
with the lesson program, not with the monitor. You must wait until
you have exited from the lesson. You know that you are communicating with
the monitor if the computer writes a "." in column 1.
%WRONG
Your answer was after deletions(RUB OUTS) received by the computer as:
%algol write(answercopy);
%WRONG
%same
%WRONG
%GOTO T4
%text t4a:
Programs are stored on disk areas. When you have a number and
password, you have your own disk area, identified by the
computer by the number. The SYSTEM also has an area of disk
space, and this is accessable by all users of the computer.
If a program is stored on your own disk area you can run that
program by giving the command "RUN name.ext" where name is the
name you give your program, and ext is the extension of the
program. If you have created a program called "FRED.SAV"
then the monitor command "RUN FRED.SAV" will start to obey
the instructions given in the program "FRED.SAV".
If a program is stored on the system area, and is available to
all users, the command to run that program is "R name.ext".
To run the system program "LISP" you would type:
R LISP
and the commands in that program would be obeyed.
%TEXT T5:
Now this lesson will soon stop, so that you can try out the "DAY" command
for yourself. When you have tried it, you start the second lesson.
%if qz
You start the second lesson in the same way in which you started the
first lesson.
%ifend qz
%ifnot qz
To start the second lesson,
if the lesson is stored on the system disk area you type "R TOPS02",
if the lesson is stored on your own disk area you type "RUN TOPS02".
After typing that you push the "RETURN" key.
%ifnot qz
%QUESTION T5Q1:
What do you type to start the second lesson, if you know that
the second lesson is stored in your own disk area?
%ORDER
%NOEXTRA
%RIGHT RUN TOPS02
%wrong runtops02
A space is required between the command name and the program name.
%right run tops02.sav
%extra
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%alg qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%wrong run tops02
%algol extratest;
%noextra
%WRONG RUN TOPSO2
The next to last character in "TOPS02" is the digit 0, not the letter O.
%WRONG RUN TOPS82
The next to last character in "RUN TOPS02" is not "8" but "0"=zero,
although some terminals print "0" in an "8"-like way.
%wrong rtops02
A space is required between the command name and the program name.
%wrong R TOPS02
No, the "R" command is used for running programs on the system
area on disk, not on your own private area.
%extra
%wrong tops02
Type "RUN" before the name of the second lesson.
%wrong NO
You are now communicating with the lesson program TOPS01. Your
commands will thus not be executed by the monitor, and the
second lesson will not actually be started. This question
is only to check that you know how to start the second
lesson.
%WRONG day
You cannot try the "DAY" command now, since you are communicating
with the lesson program, not with the monitor. You must wait until
you have exited from the lesson. You know that you are communicating with
the monitor if the computer writes a "." in column 1.
%wrong TOPS
You were asked how to start the second lesson, lesson "TOPS02"!
%same
%WRONG
Just type "RUN TOPS02" followed by pushing the "RETURN" key, and
do not type anything else than that.
%WRONG
%SAME
%ifend qz
%ifnot qz
%QUESTION T5Q2:
What do you type to start the second lesson, if you know that
the second lesson is stored on the system area on disk?
%ORDER
%NOEXTRA
%RIGHT R TOPS02
%right r tops02.sav
%right run sys: tops02
%right run sys: tops02.sav
%extra
%wrong do n t know
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong "
%alg qmsg;
%wrong %
If you want to use the "%" command to stop, back or skip, then you
must write only the character "%" and nothing else. The computer
does not recognize what you write as a "%" command if the computer
receives more than one character from you.
%wrong r tops02
%algol extratest;
%noextra
%WRONG R TOPSO2
The next to last character in "TOPS02" is the digit 0, not the letter O.
%WRONG R TOPS82
The next to last character in "R TOPS02" is not "8" but "0"=zero,
although some terminals print "0" in an "8"-like way.
%wrong RUN tops02
The "RUN" command is used for running programs in your own disk
area, not programs on the system disk area.
%extra
%wrong tops02
Type "R" before the name of the second lesson.
%wrong NO
You are now communicating with the lesson program TOPS01. Your
commands will thus not be executed by the monitor, and the
second lesson will not actually be started. This question
is only to check that you know how to start the second
lesson.
%wrong TOPS
You were asked how to startthe second lesson, lesson "TOPS02"!
%same
%WRONG
Just type "R TOPS02" followed by pushing the "RETURN" key, and
do not type anything else than that.
%WRONG
%SAME
%ifend qz
%TEXT T6:
When the computer types a dot(".") in column 1, then you know
that you are talking to the monitor, so that you can try out
the "DAY" command.
First only the finishing off of this lesson.
%if qz
If you want to get to monitor level and try the "DAY" command,
then you must answer "STOP" when the lesson master program asks
you which lesson you want to take next. This will detach you
from the lessons and put you in monitor level. When you get
the monitor "." type "DAY" (without the quotes!). To get back
to the lessons after this, you must "LOGIN" as shown on the
instruction sheet you received for the "TOPSTEACH" lessons.
%ifend qz
%text summary:
Summary
=======
Key Effect
--- ------
RETURN Finish a line and send it to the computer.
DELETE Delete the character just typed.
Command Effect
------ ------
RUN Run a program on your own area.
R Run a program on the system area.
DAY Print the time and date.
%ALGOL PAUSE; end;
%END