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

MATLAB Usage

Description

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

Input/Output

Input: Real vector X

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

Algorithm

Memory & Register

Label IN present location of input real vector X.

Register A store Min-1r Result y

R1 = Index of largest element of X

R4 = Number of items in the array

Status Register

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

Data Size Limit

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

Data Range Limit

Input data vector X range [-1.0, +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:


 mean-c.asm min-1c.asm