DSP C PROGRAM to perform multiplication operation on two numbers residing in memory. - Code

Latest

programs

Thursday, November 10, 2011

DSP C PROGRAM to perform multiplication operation on two numbers residing in memory.


MULTIPLICATION

Aim: - To perform multiplication operation on two numbers residing in memory.

Apparatus: - TMS 320C 5416 processor

Program: -

            .include “5416_IV.asm”
            .data
            .word   0005h, 0002h  //  input numbers //
            .text
            .include “intvect.asm”


Begin   STM    #1000h,AR1   // memory location of first number //
            STM    #1001h,AR2   // memory location of second number //
            STM    #1500h,AR3   // memory location of result //
            MPY   *AR1,*AR2,B
            STL     B,*AR3
            .end

Result: - The result of multiplication operation can be recorded from the memory location.






No comments:

Post a Comment