Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
--- 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 |
|
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 |
|
|