>Check if multiplier is in fractional mode (in which >case ena m_mode; for integer multiplication). > >Also, Pl. give initial contents of all regs. > >regards, > >Tarakesh. >--- Eric Chan <> wrote: > > Hello, All, > > Ii am writing and debugging some DSP program on ADSP > > 2187. I found > > a strange question , please read the following > > instruction : > > > > mr = ar * my0 (us); > > ar = ax1 - ay1 + c - 1, sr0 = mr0; > > sr1 = mr1, mr = mx0 * my0 (ss);/* problem */ > > > > We found there is wrong operation in the third > > multifunction instruction. I just happened to have an ADI FAE with me the day I saw your message. He agreed with me that it is the correct behaviour. You need to read the appropriate sections of the User's Manual very thoroughly. If you subsequently use 'sr1=mr1', you get the correct value. Also, the order of the third instruction should be reversed. The assembler does this, anyway. At any rate, the assembler with the new release of the 16-bit tools does. Leon -- Leon Heller, G1HSM Tel: (work): +44 1327 357824 (mobile): +44 79 9098 1221 Email: My web page: http://www.geocities.com/leon_heller IRISYS Ltd: http://www.irisys.co.uk ________________________________________________________________________________\ _____ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |