Hi to all Does anybody know how to assign a register value to a variable? I have declared my global variable in this way: AREA VAR, DATA, READWRITE GBLA my_var Later, in code area, I want to store value contained in R2 register in the variable my_var. Does anybody know the right method?
Thanks to all
Fabrizio
My suggestion: write the program in C and take a look to the assembler instructions generated.
Thanks for your suggestion, but I have solved this issue by "space" directive. I have declared a DATA area and in it I use this command: my_var SPACE dimension
Thanks for your support