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

Forum Post: RE: TMS320F280049: Why is this cast necessary?

$
0
0
Unfortunately, I cannot find any problem with the code generated by the compiler. The attachment below is similar to the one from last time. But I added a comment block to the beginning which explains 3 presumptions. In the assembly instructions, I added comments which always begin ;;; . Here is an example ... MOVZ AR5,*+XAR4[0] ; [CPU_ALU] |2284| ;;; AR5 = 4 This means, after that instruction has completed execution, the register AR5 contains the value 4. It ends with ... B $C$L31,EQ ; [CPU_ALU] |2284| ;;; Branch taken But that is not what happens. This conditional branch is not taken. Control falls through to the next instruction. Which is not expected behavior. This means that, somewhere along the way, these instructions do not do what I describe. Recall that I cannot execute the code. But you can. Please single step through these instructions, and tell me the first point where my comments are wrong. Thanks and regards, -George e2e.ti.com/.../0181.file.asm

Viewing all articles
Browse latest Browse all 232530

Trending Articles



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