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
Assembly code for magnitude (55x)
Started by ●January 14, 2009
Reply by ●January 15, 20092009-01-15
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
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
Reply by ●January 16, 20092009-01-16
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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>