Freescale Semiconductor SC140 specifications Decgea r4, Rx 1 → Rx Rx ≥ 0 → T, Decgea Rx

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 460
Image 460

DECGEA

DECGEA

Decrement and Set T

DECGEA

If Greater Than or Equal to Zero (AGU)

 

Operation

Assembler Syntax

 

Rx – 1 → Rx; Rx ≥ 0 → T

DECGEA Rx

 

Description

DECGEA Rx

Decrements an AGU register (Rx) and sets the T bit if the result is greater than or equal to zero. In case there is an arithmetic overflow (DECGEA on the value of $80000000), the T bit will not be set by this instruction. SP cannot be used as an operand of this instruction.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[1]

T

Set if result 0, cleared otherwise.

Example 1

decgea r4

Register/Memory Address

R4

SR

Example 2

decgea r4

Register/Memory Address

R4

SR

Before

$0010 E438

$00E4 0000

Before

$8000 0000

$00E4 0002

After

$0010 E437

$00E4 0002

After

$7FFF FFFF

$00E4 0000

A-146

SC140 DSP Core Reference Manual

Page 460
Image 460
Freescale Semiconductor SC140 specifications Decgea r4, Rx 1 → Rx Rx ≥ 0 → T, Decgea Rx