CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS

6.13 BNZ (Branch relative if Z = 0)/BNE (Branch if Not Equal)

Execute the next instruction if the Z-flag is 1 and the branch if it is 0. Branch address corresponds to the value of addition between the PC value (word value) of the next instruction and the value with rel code-extended (word value).

BNZ (Branch relative if Z = 0)/BNE (Branch if Not Equal)

Operation

(Z) = 1: (PC) (PC) + 2 (Word addition)

(Z) = 0: (PC) (PC) + 2 + rel (Word addition)

Assembler format

BNZ rel/BNE rel

Condition code (CCR)

N

Z

V

C

 

 

 

 

-

-

-

-

 

 

 

 

+: Changed by executing instruction

-: Not changed

N:Not changed

Z:Not changed

V:Not changed

C:Not changed

Number of execution cycles: 4 (at divergence)/ 2 (at non-divergence)

Byte count: 2

OP code: FC

72

Page 84
Image 84
Fujitsu F2MC-8FX manual BNZ Branch relative if Z = 0/BNE Branch if Not Equal