|
К этому устройству также есть другие инструкции:
Фрагмент инструкции
a.
If
the
in
terrupted
program
or
pro cedure
w
as
w
aiting
for
completion
of
input/output
(reading
from
or
writing
to
the
terminal)
when
the
CONTR
OL-Y
signal
w
as
receiv
ed,
the
program
con
tinues
execution
immediately
after
the
FREAD
or
FWRITE
call.
These
in
trinsics
will
indicate
successful
completion.
b.
If
the
CONTR
OL-Y
signal
w
as
receiv
ed
during
reading,
the
n
um
b er
of
c
haracters
t
yp ed
in
b efore
this
signal
is
returned
to
y
ou
as
the
v
alue
of
FREAD .
The
\carriage"
p osition
is
unc
hanged.
If
y
ou
send
another
CONTR
OL-Y
signal,
it
is
ignored
unless
y
ou
issued
a
call
to
the
RESETCONTROL
in
trinsic
at
some
p oint
prior
to
the
signal.
CONTR
OL-Y
trap
handlers
dier
from
other
trap
handlers
in
that
a
pro cess
cannot
arm
a
CM
and
an
NM
trap
handler
simultaneously
.
If
the
last
call
to
XCONTRAP
armed
an
NM
trap
handler,
then
the
next
CONTR
OL-Y
trap
in
v
ok
es
this
pro cedure.
If
the
program
w
as
running
in
CM
at
the
time
the
CONTR
OL-Y
trap
o ccurred,
the
system
actually
switches
to
NM
to
en
ter
the
trap
handler.
The
con
v
erse
is
also
true.
When
called
in
NM,
XCONTRAP
can
arm
either
a
CM
or
an
NM
trap
handler.
The
old
plab el
returned
can
b e
either
CM
or
NM
also.
When
called
in
CM,
XCONTRAP
can
accept
only
CM
plab els
and
returns
only
CM
plab els.
If
XCONTRAP
is
called
to
congure
a
CM
trap
handler
and
the
pro cess'
previous
CONTR
OL-Y
trap
handler
w
as
an
NM
pro cedure,
XCONTRAP
returns
0
as
the
oldplab el
v
alue.
This
o ccurs
b ecause
NM
plab els
are
32-bits,
while
a
call
to
XCONTRAP
in
CM
can
return
only
a
16-bit
plab el
v
alue.
T
o
use
the
XCONTRAP
and
RESETCONTROL
in
trinsics
to
enable/disable
and
arm/disarm
user-written
CONTR
OL-Y
trap
handler,
y
ou
m
ust
do
the
follo wing:
Declare
the
in
trinsics
in
y
our
source,
using
whatev
er
con
v
en
tions
are
appropriate
to
y
our
language.
Declare
the
trap
handling
pro cedure,
with
no
parameters
and
no
functional
return.
A
user-dened
trap
handling
pro cedure
cannot
p erform
a
Caution
goto
out
of
that
pro cedure.
The
state
of
the
pro cess
and
the
program
results
are
not
predictable
after
a
non-lo cal
goto .
MPE
XL
CONTROL-Y
Traps
4-5
...Эта инструкция также подходит к моделям:
Программное обеспечение - MPE/iX 6.5 Operating System (204.33 kb)
Программное обеспечение - MPE/iX 7.0 Operating System (204.33 kb)
Программное обеспечение - MPE/iX 7.5 Operating System (204.33 kb)