DSPRelated.com
Forums

Assembly code for magnitude (55x)

Started by ewon...@cfl.rr.com January 14, 2009
Hello,

I am looking for source code in assembly for the C5510 to compute de magnitude of two 16 bit number. Or can direct me to where I can get it.

Thanks

Enrique
Hi,
 
Finding magnitude of a number is easy.  check if the MSB of the 16 bit no is 1, if so then take a two's complement of the number to get its magnitude.  The instructions of 55X can be downloaded from TI site (Instruction set manual)
 
www.ti.com
 
regards,
Prem

--- On Thu, 15/1/09, e...@cfl.rr.com wrote:

From: e...@cfl.rr.com
Subject: [c55x] Assembly code for magnitude (55x)
To: c...
Date: Thursday, 15 January, 2009, 12:27 AM

Hello,

I am looking for source code in assembly for the C5510 to compute de magnitude of two 16 bit number. Or can direct me to where I can get it.

Thanks

Enrique


Thanks for the response.

What I meant is the square root of (a square plus b quare).

---- Premkiran Mannava wrote:
> Hi,
>  
> Finding magnitude of a number is easy.  check if the MSB of the 16 bit no is 1, if so then take a two's complement of the number to get its magnitude.  The instructions of 55X can be downloaded from TI site (Instruction set manual)
>  
> www.ti.com
>  
> regards,
> Prem
>
> --- On Thu, 15/1/09, e...@cfl.rr.com wrote:
>
> From: e...@cfl.rr.com
> Subject: [c55x] Assembly code for magnitude (55x)
> To: c...
> Date: Thursday, 15 January, 2009, 12:27 AM
>
>
>
>
>
>
> Hello,
>
> I am looking for source code in assembly for the C5510 to compute de magnitude of two 16 bit number. Or can direct me to where I can get it.
>
> Thanks
>
> Enrique
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>