EmbDev.net

Forum: ARM programming with GCC/GNU tools ARM and Assembly


von Marciano (Guest)


Rate this post
useful
not useful
I need info about symbols for " CODE  " , " DATA " and the syntax to
make a pure ASM code for ARM without configure ports , timers , stack
...  . I tried this but give only error , with this sample what the
correct syntax .


      ldr R7,=CONST

LOC_0:
      BL   callsub
      ldr  r1,r0
      cmp  r1,#1000
      beq  loc_0


callSUB       <------------------  don't recogzine this sub function

       mov r0,#1000
       mov pc,lr


const DCD 0x03030303  <----   error on this data

von Jim K. (ancaritha)


Rate this post
useful
not useful
Marciano wrote:
> callSUB       <------------------  don't recogzine this sub function


I think that needs a colon after it to be a valid function

callSUB:

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.