CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User’s Manual U11047EJ3V0UM00
110
DBNZ
Decrement and Branch if Not Zero
Conditional Loop (R1
≠≠≠≠
0)
[Instruction format]
DBNZ dst, $addr16
[Operation]
dst
←
dst – 1,
then PC
←
PC + b + jdisp16 if dst R1
≠
0
[Operand]
Mnemonic
Operand (dst, $addr16)
b (Number of bytes)
DBNZ
B, $addr16
2
C, $addr16
2
saddr, $addr16
3
[Flag]
Z
AC
CY
[Description]
•
One is subtracted from the destination operand (dst) contents specified with the 1st operand and the
subtraction result is stored in the destination operand (dst).
•
If the subtraction result is not 0, program branches to the address indicated with the 2nd operand ($addr16).
When the subtraction result is 0, no processing is carried out and the subsequent instruction is executed.
•
The flag remains unchanged.
[Description example]
DBNZ B, $1215H; The B register contents are decremented. If the result is not 0, program branches to 1215H
(with the start of this instruction set in the range of addresses 1194H to 1293H).
Summary of Contents for 78K/0S Series
Page 2: ...User s Manual U11047EJ3V0UM00 2 MEMO ...
Page 14: ...User s Manual U11047EJ3V0UM00 14 MEMO ...
Page 28: ...User s Manual U11047EJ3V0UM00 28 MEMO ...
Page 118: ...User s Manual U11047EJ3V0UM00 118 MEMO ...
Page 120: ...User s Manual U11047EJ3V0UM00 120 MEMO ...