Freescale Semiconductor SC140 specifications Ift move.w #$ffff,d0

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 491
Image 491

IFc

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

SR[1]

T

True bit

Status and Conditions Changed by Instruction

None.

Example

ift move.w #>$ffff,d0

Register/Memory Address

SR

immediate

L0:D0

Before

$00E4 0002

$FFFF

After

$00E4 0002

$0:$FF FFFF FFFF

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

IFc

1

1

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

0

1

a

a

a

0

1

1

0

p

j

c

c

c

 

 

 

 

15

 

 

 

 

 

 

8

7

 

 

 

 

 

 

0

IFc

2

1

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

1

1

a

a

a

0

H

t

h

p

j

c

c

c

 

 

 

 

1

0

1

b B e E T

b B e E b B e E

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: These instructions are encoded into either a one-word or two-word prefix.

Instruction Fields

ccc:Conditional execution of the entire execution set

In the following table, true/false relates to the state of the T bit in SR: D0, D1, D2, and D3 are DALU instructions. A0 and A1 are AGU instructions. The numbers relate to the relative offset of the instruction from the beginning of the set, as encoded. For example, a full execution set might be D0, D1, D2, D3, A0, A1.

000—Unconditionally executed

001—If true (D0,D2,A0), if false (D1,D3,A1) 010—If true, all the set

011—If false, all the set 100—Reserved 101—Reserved

110—If true (D0,D2,A0), always (D1,D3,A1) 111—If false (D0,D2,A0), always (D1,D3,A1)

SC140 DSP Core Reference Manual

A-177

Page 491
Image 491
Freescale Semiconductor SC140 specifications Ift move.w #$ffff,d0, Ccc Conditional execution of the entire execution set