beautypg.com

Bcnd – Texas Instruments TMS320C2XX User Manual

Page 196

background image

Branch Conditionally

BCND

7-43

Assembly Language Instructions

Syntax

BCND

pma, cond 1 [,cond 2] [,...]

Operands

pma:

16-bit program-memory address

cond

Condition

EQ

ACC = 0

NEQ

ACC

0

LT

ACC < 0

LEQ

ACC

0

GT

ACC > 0

GEQ

ACC

0

NC

C = 0

C

C = 1

NOV

OV = 0

OV

OV = 1

BIO

BIO low

NTC

TC = 0

TC

TC = 1

UNC

Unconditionally

Opcode

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

ZLVC

ZLVC

TP

0

0

0

1

1

1

pma

Note:

The TP and ZLVC fields are defined on pages 7-3 and 7-4.

Execution

If

cond 1 AND cond 2 AND ...

Then pma

PC

Else increment PC

Status Bits

None

Description

A branch is taken to the specified program-memory address (pma) if the speci-
fied conditions are met. Not all combinations of conditions are meaningful. For
example, testing for LT and GT is contradictory. In addition, testing BIO is mu-
tually exclusive to testing TC.

Words

2

Cycles for a Single BCND Instruction

Condition

ROM

DARAM

SARAM

External

True

4

4

4

4+4p

False

2

2

2

2+2p

Note:

The ’C2xx performs speculative fetching by reading two additional instruction words. If
the PC discontinuity is taken, these two instruction words are discarded.