This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

accessing local "c" variables in inline assembly

How do I access a local variable in assembly?

I have used the SRC to determine how the compiler created the variable. it changes it's name from variable to variable?nnn where nnn is a number.

How do I determine what nnn is? (other than looking at the .src file)
can I access the variable using the original label name?

If I use the variable:nnn , nnn will occasionally change and ten I get errors!

Help

Parents
  • Try writing a dummy C subroutine passing the variable to it as an argument & returning it unchanged. Check the compiled assembly code & add any instructions to the code between the subroutines entry point & it's return of the value.

    Don

Reply
  • Try writing a dummy C subroutine passing the variable to it as an argument & returning it unchanged. Check the compiled assembly code & add any instructions to the code between the subroutines entry point & it's return of the value.

    Don

Children