EasyManuals Logo

HP HP-11C User Manual

HP HP-11C
264 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #121 background imageLoading...
Page #121 background image
Section
8
Subroutines
Subroutines
In
Brief
Often
a
program
contains
a
certain
series
of
instructions
that
are
executed
several
times
during
a
single
execution
of
the
program.
When
the
same
set
of
instructions
occurs
more
than
once
in
a
program,
memory
space
can
be
conserved
by
executing
the
instructions
as
a
subroutine.
Go
To
Subroutine
A
subroutine
is
executed
using
with
the
desired
alpha
or
numeric
label
address.*
A
instruction
transfers
execution
to
the
specified
label
address
in
the
same
way
as
(GTO].
However,
when
a
instruction
is
executed
in
a
running
program,
a
pending
return
condition
is
set
in
the
calculator.
When
a
pending
return
condition
exists,
the
first
subsequent
(return)
instruction
encountered
by
a
running
program
will
cause
program
execution
to
transfer
back
to
the
program
instruction
immediately
following
the
last
[GSB].
Execution
then
continues
sequentially
downward
through
program
memory.
(When
the
is
executed,
the
“pending”
condition
is
cleared.)
Compare
the
following
illustrations
of
a
branch
and
a
subroutine.
Branch
(f)(teL)(8]
/
/
TR
(o)
Execution
trans-
fers
to
line
000
and
halts.
*
A
followed
by
an
alpha
label
address
is
an
abbreviated
key
sequence.
Refer
to
page
78,
Abbreviated
Key
Sequences.
119

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP HP-11C and is the answer not in the manual?

HP HP-11C Specifications

General IconGeneral
BrandHP
ModelHP-11C
CategoryCalculator
LanguageEnglish

Related product manuals