Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
Conditional
Branching
The 8051
contains
a suite
of
instructions
which,
as a
group,
are
referred
to as
"conditional
branching"
instructions.
These
instructions
cause
program
execution
to
follow a
non-sequential
path if
a
certain
condition
is true.
Take,
for
example,
the JB
instruction.
This
instruction
means
"Jump if
Bit
Set." An
example
of the
JB
instruction
might
be:
|
JB 45h,HELLO |
|
NOP |
HELLO: |
.... |
>>>
Enter
here for
detail
on
"Conditional
Branching"
<<<
<<< Click
here to
come
back on
(8051
-
Program
Flow)