Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 231190

Forum Post: CCS/TMS320F28377S: ASM program

$
0
0
Part Number: TMS320F28377S Tool/software: Code Composer Studio The following are examples of assembly language programs. Please help check if it is correct. MOVL XAR2, #Array1 ;Array1 is defined by C language program, Uint16 *Array1; MOV @AR0, #5 MOVL ACC, *+XAR2[AR0] ;This line is equivalent to ACC=((Uint32)Array1[11]<<16)+((Uint32)Array1[10]). MOVL AL, *+XAR2[AR0] ;This line is equivalent to AL=(Uint16)Array1[5]. Is the above understanding of the program correct? In indirect addressing mode “loc32”, does *+XAR2[AR0] represent an address value equal to the value of XAR2 plus the value of AR0 multiplied by 2?

Viewing all articles
Browse latest Browse all 231190

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>