ZERO Zero a Register

 

Zero a Register

ZERO

Syntax

 

ZERO (.unit) dst

 

 

.unit = .L1, .L2, .D1, .D2, .S1, .S2

Compatibility

 

C62x, C64x, C67x, and C67x+ CPU

Opcode

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

dst

sint

.L1, .L2

001 0111

dst

slong

.L1, .L2

011 0111

dst

sint

.D1, .D2

01 0001

dst

sint

.S1, .S2

01 0111

 

 

 

 

Description

The ZERO pseudo-operation fills the dst register with 0s by subtracting the dst

 

from itself and placing the result in the dst.

 

In the case where dst is sint, the assembler uses the MVK (.unit) 0, dst

 

instruction.

 

In the

case where dst is slong, the assembler uses the

 

SUB (.unit) src1, src2, dst instruction.

Execution

if (cond)

dst − dst dst

 

else nop

 

Instruction Type

Single-cycle

Delay Slots

0

 

3-272

Instruction Set

SPRU733

Page 332
Image 332
Texas Instruments TMS320C67X/C67X+ DSP manual Zero a Register