4/17/98 6-61 Addressing Modes and Data Types
BEQ Branch if zero
Syntax: BEQ rel8
Operation:
(PC) <-- (PC) + 2
if (Z) = 1 then
(PC) <-- (PC + rel8*2)
(PC.0) <-- 0
Description: The branch is taken if the last arithmetic/logic instruction (or other instruction that
updates the Z flag) had a result of zero (the Z flag contains a 1). The branch range is +254 bytes to
-256 bytes, with the limitation that the target address is word aligned in code memory.
Note: Refer to section 6.3 for details of branch range
Size: Bit
Flags Updated: none
Bytes:2
Clocks: 6t/3nt
Encoding:
1 1 1 1 0 0 1 1
rel8