Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
Returns from Routines
Another
structure
that can
cause
program
flow to
change
is the
"Return
from
Subroutine"
instruction,
known as
RET in
8051
Assembly
Language.
The RET
instruction,
when
executed,
returns
to the
address
following
the
instruction
that
called
the
given
subroutine.
More
accurately,
it
returns
to the
address
that is
stored
on the
stack.
>>>
Enter
here for
detail
on
"Return
from
Subroutines"
<<<
<<< Click
here to
come
back on
(8051
-
Program
Flow)