HI
i am using following in the main.c
asm(" LB 0x32fff")
but i want to use some variable to send address.
for example.
unsignd short* address vari;
address vari = 0x32ffff;
asm("LB vari");
is it possible?
please help me
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HI
i am using following in the main.c
asm(" LB 0x32fff")
but i want to use some variable to send address.
for example.
unsignd short* address vari;
address vari = 0x32ffff;
asm("LB vari");
is it possible?
please help me
Hi,
You can use the indirect branch instruction "LB *XAR7". So you would do this
__asm(" MOVW DP, #_vari \
MOVL XAR7, @_vari \
LB *XAR7");
In addition to the doc Gautam pointed out you can also refer to SPRU430E for a description of the indirect branch