Chapter
3. I
nstruction
Set
JMP
JNC
3-28
JUMP
The J
MP
instruction alters the execution sequence
by
loading the address
in
its second and third bytes into the
program cou nter.
Opcode Operand
JMP
address
The address may
be
specified as a number, a label, or an expression. The
as~embler
inverts the high and low
address bytes when it assembles the address.
Example:
~.---------------------------,
o 0 0 0
low addr
high addr
L...
___
•.
________________
_
Cycles:
States:
Ad
dressi
ng:
Flags:
3
10
immediate
none
Examples
of
the variations
of
the jump in<;truction appear
in
the description
of
thc J
PO
instruction.
JUMP
IF
NO
CARRY
The JNC instruction tests the setting
of
the carry flag.
If
there
is
no carry (carry flag = 0), program execution
resumes
at
the address specified
in
the JNC instruction.
If
thcre
is
a carry (cdrry flag =
1),
execution
cuntinue'
with the next sequential instruction.
Opcode
Operand
JNC
addre~~
The address may
be
specified as a number, a label, or
an
expression. The assembler invert, the high dnd low
address bytes when it assembles the instruction.
I
1
0
Cycles:
States:
Addressing:
Flags:
1
0 0
I
0
low addr
high addr
3
(2
or
3 on 8085)
10
(7
or 10 on 8085)
immediate
none