Motorola DSP Developer's Kit
max-1r.asm
Motorola DSP Developer's Kit
max-1r.asm
Motorola DSP Developer's Kit    
max-1r.asm

MATLAB Usage

Description

This function returns the largest element of real input vector X and its index

Input/Output

Input: Real vector X

Output: Real value Y (largest element of X), index

Algorithm

Memory & Register

Memory allocation:

X memory: label IN points to the location of the real data input of vector X.

Register usage:

Status Register

The assembly function max-1r-r.asm does not explicitly set any status registers/bits.

Data Size Limit

The length of vector X can't be larger than the continuous available data memory size.

Data Range Limit

The value of input vector X must be between -1.0 and +1.0.

Precision

In the case of DSP563, precision is 23 bits.

In the case of DSP566, precision is 15 bits.

Performance Limit

DSP563:

DSP566:


 log10-c.asm max-1c.asm