CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS

6.16 BZ (Branch relative if Z = 1)/BEQ (Branch if Equal)

Execute the next instruction if the Z-flag is 0 and the branch if it is 1 . 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).

BZ (Branch relative if Z = 1)/BEQ (Branch if Equal)

Operation

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

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

Assembler format

BZ rel/BEQ 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: FD

78

Page 90
Image 90
Fujitsu F2MC-8FX manual BZ Branch relative if Z = 1/BEQ Branch if Equal