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

von Marciano (Guest)

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

      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
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



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.