EmbDev.net

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


Author: Marciano (Guest)
Posted on:

Rate this post
0 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

Author: Jim Kaz (ancaritha)
Posted on:

Rate this post
0 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:

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.