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
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
thanks, I have taken the C portion and replaced it with Assembler making the whole module assembler.
re-evaluated why I was doing it seperately.
MT