Aim: - To perform left shift and right shift operation on a number residing in memory.
TMS 320C 5416 processor
.word 0003h, // input number //
STM #1000h,AR5 // memory location of first number //
Result: - Shifting the number left by one bit is equivalent to multiplying number by 2
Shifting the number left by one bit is equivalent to dividing number by 2