Freescale Semiconductor SC140 TSTEQA.x Test for Equal to Zero AGU TSTEQA.x Operation, Tsteqa.w r4

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 729
Image 729

TSTEQA.x

TSTEQA.x Test for Equal to Zero (AGU) TSTEQA.x

Operation

Assembler Syntax

If Rx[15:0] == 0, then 1 → T, else 0 → T

TSTEQA.W

Rx

If Rx[31:0] == 0, then 1 → T, else 0 → T

TSTEQA.L

Rx

Description

Set the T bit if the source AGU register (Rx) is equal to zero; otherwise, clears the T bit.

TSTEQA.W Rx

Tests only the lower word (bits [15:0]) of the source operand.

TSTEQA.L Rx

Tests all 32 bits of the source operand.

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

SR[18]

EXP

Determines which stack pointer is used when the stack pointer is an

 

 

operand. Otherwise, the instruction is not affected by SR.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[1]

T

Set if the source operand is equal to zero and cleared if the source

 

 

operand is not equal to zero.

Example 1

tsteqa.w r4

Register/Memory Address

R4

SR

Example 2

tsteqa.l r1

Register/Memory Address

R1

SR

Before

$5F3E 0000

$00E4 0000

Before

$0000 0000

$00E4 0000

After

$00E4 0002

After

$00E4 0002

SC140 DSP Core Reference Manual

A-415

Page 729
Image 729
Freescale Semiconductor SC140 TSTEQA.x Test for Equal to Zero AGU TSTEQA.x Operation, Tsteqa.w r4, Tsteqa.l r1