Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Re: beginner - bhaskar_thiagarajan - Dec 31 19:00:00 1969



--- In , Mike Rosing <eresrch@e...> wrote:
> On Tue, 13 May 2003, hemant ramdasi wrote:
>
> > Hi all,
> > I have started doing assembly programming on
> > ADSP-21060
> >
> > I have written one function which is given below.
> >
> > int floor_asm(float a)
> > {
> > int c;
> > asm("%0= trunc %1;":"=d" (c):"d" (a));
> ^ ^

Where is the original post? I don't see a question.
In any case, as (Dr.)Mike pointed out, I can't figure out what you
are trying to do.
If you want to do assembly programming, you should probably start
with writing everything in assembly rather than try to include
aseembly instructions inline.
Keep the assembly code simple to begin with - you can optimize your
functions after you get the simple programs to work right.

Cheers
Bhaskar > If %1 = 'a', what's %0?
> The rest of it doesn't make any sense to me at all either.
> what are you trying to tell the compiler to do? > Patience, persistence, truth,
> Dr. mike




(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: beginner - Mike Rosing - May 13 17:05:00 2003

On Tue, 13 May 2003, hemant ramdasi wrote:

> Hi all,
> I have started doing assembly programming on
> ADSP-21060
>
> I have written one function which is given below.
>
> int floor_asm(float a)
> {
> int c;
> asm("%0= trunc %1;":"=d" (c):"d" (a));
^ ^
If %1 = 'a', what's %0?
The rest of it doesn't make any sense to me at all either.
what are you trying to tell the compiler to do? Patience, persistence, truth,
Dr. mike





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )