Siemens C500 User Manual page 68

Microcontroller family
Table of Contents

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
4-42
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents