Accessing local variables in asm

How can you access local variables in the arm asm block?

One example the software came with looks like this and doesn't work:

int AddUp (
  int n,
  int near *pTab)
{
  __asm  {            ; open inline-assembly block
    mov   r2,pTab     ; R2:=start of table
    mov   r3,n
    ...
As far as I know, near isn't even a valid keyword anymore, but thats a different topic.

I also found references to the LDAV, STAV, and LDAA Keil specific instructions, but I can't seem to get those to work either.

Does anyone have any suggestions?

Thanks,
Peter Burdine
General Atomics -- Lynx Systems

More questions in this forum