Download Print this page

Siemens SAB 80515 Series User Manual page 169

8-bit single-chip microcontroller family

Advertisement

JNZ
rel
Function:
Jump if accumulator is not zero
Description:
If any bit of the accumulator is a one, branch to the indicated address; otherwise
proceed with the next instruction. The branch destination is computed by adding the
signed relative-displacement in the second instruction byte to the PC, after
incrementing the PC twice. The accumulator is not modified. No flags are affected.
Example:
The accumulator originally holds 00 H . The instruction sequence
JNZ
INC
JNZ
will set the accumulator to 01 H and continue at label LABEL2.
Operation:
JNZ
(PC) ← (PC) + 2
if (A) ≠ 0
then (PC) ← (PC) + rel.
Encoding:
0 1 1 1
Bytes:
2
Cycles:
2
Semiconductor Group
LABEL1
A
LABEL2
0 0 0 0
rel. address
*
169
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k