Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-04 - 43,50334/tops02.gno
There are no other files named tops02.gno in the archive.
%switch qz false
%if qz
%nocontrolc
%nextlesson pub("TOPQ");
%ifend qz
%noorder
%extra
%TEXT T1:
Running ready-made programs.
===========================

%ifnot qz
When you started to run this lesson, you typed "RUN TOPS02"
on your terminal. This was because this lesson is a production
program saved for you.

%ifend qz
If you want to start the execution of a production
program saved for you, then you type "RUN " followed by the
name of the production program. You can also start the execution
of system programs, that is programs which are common to all
users of this computer. To do this, you type "R " followed by
the name of the system program. If, for example, you wish
to start execution of the system program "BASIC", that is
the BASIC programming system, then you type "R BASIC".
%QUESTION T1Q1:
If you want to start execution of the system program "LISP", that
is the LISP programming system, what do you type then? Assume that
LISP is stored in the system area on disk.
%NOEXTRA
%ORDER
%right run SYS:LISP
%wrong rlisp
There must be a space after the command name.
%RIGHT R LISP
%WRONG RUN LISP
You would have typed "RUN LISP" if LISP had been a production
program saved for you. But since LISP is a program available to
all users of this computer, you must instead use the "R " command.
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong %
%same
%lack lisp
Your answer did not contain the name of the program you wanted
to execute, that is the word "LISP".
%lack r
You typed the program name, "LISP", but you should also type
the "R" command to the computer.
%wrong LISP R
The order is incorrect. First "R" and then "LISP".
%wrong
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
%WRONG
%GOTO T1
%QUESTION T1Q2:
Which command do you use to start execution of a production program which
is saved specially for you?
%EXTRA
%RIGHT RUN
%WRONG R
The "R" command is for system programs. A longer form is used for
your own programs.
%wrong login
"LOGIN" gives you access to the computer, but normally does not
start execution of any program.
%if qz

That "LOGIN 66,66" starts execution of these lessons is an exception.
%ifend qz
%extra
%wrong ex
The EXECUTE command is for programs that are beeing developed.
I told you another command for production programs.
%wrong back
If you want to back, type the single character "%".
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
%WRONG
%GOTO T1
%TEXT T2:
The RUN and START commands to start execution.
=============================================

The meaning of the "RUN" command is
a) get the program into core,
b) start execution of the program.
If the program is already in core, then you can start it by
typing the "START" command.
%TEXT T3:
If you have started execution of a program, then you cannot
type the monitor commands like "RUN" or "START". The reason
for this is that what you type goes to the program, not to
the monitor. If, for example, you should type "START"
now, then that message would go to this lesson program, not
to the monitor. Therefore you must first stop execution
of the ongoing program. For lessons created with the
GNOSIS system, you can always stop by typing "%". But this
is special for the gnosis system.
%TEXT T4:
CONTROL-C to stop execution.
===========================

However, there is a way in which you can stop almost any
program. This is the so-called CONTROL-C. This is achieved
by simultaneously pushing both the "CONTROL" and the letter C
key on your terminal. After this, you will normally get to
the monitor. You will know when the monitor is there because
the monitor types "." in the first column of a line. Then you
know that you can write monitor commands like "RUN" or "START".

But don't push "CONTROL-C" now,
if you want to continue with this lesson.
%TEXT T5:
The CONTINUE command to restart execution.
=========================================

After typing CONTROL-C you will get to the monitor, and you can
restart the program you were just running by typing "START". Then
you will get to the beginning of the lesson. You can also restart
by typing "CONTINUE". Then you will restart where you previously
stopped.

The CONTINUE facility does not work for all programs,
for example not for this lesson itself.
%QUESTION T5Q1:
If this lesson had been an ordinary program, you could have
stopped it with CONTROL-C and then continued again. However, the
version of the lesson you are running now is specially protected
against that kind of use of CONTROL-C.

What output will the monitor normally respond with to your
terminal when you type "CONTROL-C"?
%NOORDER
%EXTRA
%RIGHT DOT COLUMN 1
%RIGHT . COLUMN 1
%RIGHT .
%RIGHT DOT
%right point
%right period
%wrong c
"CONTINUE" and "^C" is something you type to the monitor,
not normally anything the monitor types to you.
%wrong "
Do not include any double-quotes ('"') in your answer.
%if qz
%wrong punkt
Jag l}tsas att jag inte f`rst}r svenska!
Speak english!
%ifend qz
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
A hint: The monitor responds with a so-called prompter character,
that is one single character in column 1 indicating that the monitor
is ready to accept input commands from you. But which is this prompter
character?
%wrong
%same
%WRONG
The monitor responds with a dot(".") in column 1 of a line.
%GOTO NEXT
%QUESTION T5Q2:
And when the monitor responds with a dot, what do you do to get
back to the program at the point where you left it again?
%extra
%RIGHT TYPE CONTINUE
%RIGHT CONTINUE
%RIGHT CON
%extra
%wrong st
The "START" command will restart the lesson from the beginning,
not restart it at the point where you left it.
%wrong ree
The "REENTER" command will restart the program at some special
reentrance point.
%wrong return
There is no "RETURN" command. A hint: The command I'm asking
for starts with a "C".
%wrong ru
"RUN" starts the execution of a program from the beginning,
not from the point where you left it with ^C.
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
%WRONG
%GOTO T5
%text t5b:
Double CONTROL-C to interrupt program loops.
===========================================

The CONTROL-C key will only interrupt the execution of
the program if the key combination is pushed when the user program
is expecting input from the terminal. However, if you are connected
to the computer through a full duplex line, then you can also
interrupt the computer when it is typing to you or when the computer
program is in a loop.

To do this, you push the CONTROL-C key combination twice,
instead of only once.

%QUESTION t5bq1:
If you want to interrupt the program when it is
expecting input from the terminal, then how many
CONTROL-C:s do you type to interrupt it?
%noextra
%right 1
%extra
%right one
%right once
%wrong two
No, two CONTROL-C:s is for interruppting a program which is
executing.
%wrong double
%same
%wrong twice
%same
%noextra
%wrong 2
%same
%wrong 3
No, three CONTROL-C:s will have the same effect as two CONTROL-C:s :
They will stop the program that is excuting.
%wrong three
%same
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong
%wrong
The correct answer is "one".
%goto next
%question t5bq2:
And if you want to interrupt a program which is executing,
then how many CONTROL-C:s do you type?
%noextra
%right 2
%extra
%right two
%right twice
%wrong one
No, one time is not enough if you want to interrupt
an executing program. One time is only when the program is ex-
pecting input from you.
%wrong once
%same
%noextra
%wrong 1
%same
%extra
%neutral 3
This will work, but you need not type quite as many as that.
Try again.
%neutral three
%same
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong
%wrong
The correct answer is that you push it two times.
%goto next
%algol t6: t7:
%QUESTION T7Q1:
%if qz
If you wanted to run a program called "TOPQ02",
and you had just previously left that program, what
would you type to start the execution from the beginning of
the program again?
%ifend qz
%ifnot qz
If you wanted to run a lesson called "TOPS02",
and you had just previously left that lesson, what
would you type to start the execution from the beginning of
the lesson again?
%ifend qz
%ORDER
%extra
%right st
%RIGHT START
%GOTO NORESTART
%wrong runtop
There should be a space after the command name.
%if qz
%RIGHT RUN TOPQ02
%ifnot qz
%RIGHT RUN TOPS02
%ifend qz
If you know that the program is stored on your own disk area,
%if qz
then you could write "RUN TOPQ02", but since the program is already
%ifnot qz
then you could write "RUN TOPS02", but since the program is already
%ifend qz
in core, there is a simpler command to start a program which
already is in core. What is it?
%if qz
%RIGHT R TOPQ02
%ifnot qz
%RIGHT R TOPS02
%ifend qz
If you know that the program is stored on the system disk area,
%if qz
then you could write "R TOPQ02", but since the program is already
%ifnot qz
then you could write "R TOPS02", but since the program is already
%ifend qz
in core, there is a simpler command to start a program which
already is in core. What is it?
%GOTO REPEAT
%extra
%wrong start top
Since the program is already loaded into your core area,
you do not have to type anything after the word "START".
%wrong run
What do you type after "RUN"?
%wrong ex
The "EXECUTE" command is used to compile,
link edit and start execution of a program. But that command is
not used to start execution of a program which is already stored
as an executable core image on disk.
%wrong start
Only answer with what you would type to the monitor, do not
include any extra words in your answer.
%algol extratest;
%wrong cont
The "CONTINUE" command restarts execution where you left the
program, not at the beginning of the program.
%if qz
%wrong TOPQo2
%ifnot qz
%wrong TOPSo2
%ifend qz
%if qz
The character before 2 in "TOPQ02" is "0"=zero, not "O"=the letter o.
%ifnot qz
The character before 2 in "TOPS02" is "0"=zero, not "O"=the letter o.
%ifend qz
%wrong r
What do you type after "R"?
%extra
%lack r
Use the "R" command.
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
%WRONG
%QUESTION gobackquestion:
Do you want to go back to the section where you can learn how to restart
a program already in core?
%extra
%NEUTRAL YES
%GOTO T2
%neu y}
%same
%NEUTRAL NO
%GOTO NEXT
%neu n
%same
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%WRONG
Answer either "YES" or "NO".
%text logout: norestart:
When you want to leave the computer terminal for a while, you
cannot just leave it or disconnect it, you have to perform
a LOGOUT. The simplest way to do this is to run the LOGOUT
program. Thus, when the monitor responds with a dot (".")
to you, you answer by typing "KJOB" and then pushing
the "RETURN" key.
%question rlogoutq:
What do you type to LOGOUT before leaving the computer?
%noextra
%order
%right run SYS:logout
%right k
%right kj
%right  R LOGOUT
%extra
%wrong r kjob
Use either the "KJOB" command or run the "LOGOUT" program.
%right kjob
%right k/
%wrong RUN
"RUN" is for running your own programs, not for
system programs. Write "R" instead for system
programs.
%lack k
Use the "KJOB" (kill job) command.
%extra
%wrong do n t
If you do not know the answer to a question, then answer the question
with the single character "%".
%wrong
%wrong
Take lesson 12 if you want to learn more about logging out.
%goto logout
%TEXT T8:
Now this lesson ends. If you wish, you can restart it. You can always
type "%" to stop the restarted lesson if you do not
want to repeat the whole lesson, only repeat part of it.
%text summary:
Summary
=======

TWO control C:s will halt a running program.
ONE control C will stop a program waiting for input.

Command		Effect
-------		------
RUN		Runs a program stored on your own disk area.
R		Runs a program stored on the system area.
START		Starts a program already in core.
CONTINUE	Restarts a program which was interrupted by
		control C at the same point where execution
		was stopped.
KJOB		Log out.
%end