Freescale Semiconductor SC140 Transfer Maximum Signed Value Dalu, Max d0,d4, MAX Dg,Dh

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 560
Image 560

MAX

MAX

Transfer Maximum Signed Value (DALU)

MAX

Operation

 

Assembler Syntax

 

If Dg > Dh, then Dg → Dh

MAX Dg,Dh

 

Description

MAX Dg,Dh

Writes the larger of two signed values in a data register pair (Dg and Dh) to the second of the two registers (Dh). If the first register is greater than the second, the value of the first register is written to the second. Otherwise, the second register is unchanged. Only certain pairs of registers are allowed; see Instruction Fields below.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed By Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

Example

max d0,d4

Register/Memory Address

D0

L4:D4

Before

$FF FFFF FFF5

$0:$FF FFFF 8000

After

$0:$FF FFFF FFF5

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

MAX Dg,Dh

1

1

1

Note: ** indicates serial grouping encoding.

Opcode

158 70

0 * 1 0 1 1 G G 0 1 1 1 1 1 0 0

Instruction Fields

Dg,Dh

GG

Data Register Pairs

00 D0,D4

01 D1,D5

10 D2,D6

11 D3,D7

Note: This instruction can specify D8-D15 as operands by using a prefix.

A-246

SC140 DSP Core Reference Manual

Page 560
Image 560
Freescale Semiconductor SC140 Transfer Maximum Signed Value Dalu, Max d0,d4, If Dg Dh, then Dg → Dh, MAX Dg,Dh