Access C/C+ variable from assembly

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access C/C+ variable from assembly

1,110 Views
kfirbs
Contributor III

Hi.

I'm having trouble accessing C/C++ variable from an assembly code.

I have used the following documentation:

assembly programming 

and tried to use something like 

ASM_KEYWORD(" la r0,branch_addr");

"Load Address (la): The la mnemonic is useful for obtaining the address of a variable specified by name" (EREFRM_2-0.pdf).

Which results in an error:

:113, Error, Unrecognized line: la r0,branch_addr

Is there another way of accessing a variable?

0 Kudos
Reply
0 Replies