Mitsubishi M16C/60 Series Software Manual page 40

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

BBC
When (Mi) or (Ai) = 0, (PC) ← (PC) + n + REL
Op e r a t io n :
F u n c t io n :
This instruction tests the designated bit i of M or A and takes
a branch if the bit is 0. The branch address is specified by a
relative address. If the bit is 1, next instruction is executed.
St a t u s fla g :
No change
Addressing mode
Accumulator bit
∆BBC∆i,A,$hhll
Relative
Zero page bit
∆BBC∆i,$zz,$hhll
Relative
Notes 1: rr
=$hhll–( +n). The rr
16
2: When a branch is executed, add 2 to the cycle number.
3: When executing the BBC instruction after the contents of the interrupt
request bit is changed, one instruction or more must be passed
before the BBC instruction is executed.
34
B
RANCH ON
(Mi) or (Ai) = 1, (PC) ← (PC) + n
n: If addressing mode is Zero Page Bit Relative, n=3. And if
addressing mode is Accumulator Bit Relative, n=2.
Statement
(20i+13)
(20i+17)
zz
is a value in a range of –128 to +127.
16
B
C
IT
LEAR
Machine codes
Byte number
, rr
16
16
,
16
, rr
16
16
BBC
Cycle number
2
4
3
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents