Re: ARM assembler: labels



Hello, Paul!
You wrote on Mon, 25 Aug 2008 11:42:18 +0300:

PK> Typically label1 and label2 would be descriptive names.

PK> Look at the code where you have the branch/jump instruction to
PK> label1/label2 and there are typically different reasons to going to
PK> either label1 or label2.

This is snippet from the "AT91sam7s getting started" startup code by Atmel:

[skip includes and defines]

/* Application startup entry point */
..globl reset_handler
..align 4

..section .vectors
..arm

/* Exception vectors (should be a branch to be detected as a valid code by
the rom */
_exception_vectors:
reset_vector:
ldr pc, =reset_handler
undef_vector:
b undef_vector /* Undefined Instruction */
......

'_exception_vectors' is not referred anywhere else in the code. I was asking
about such situations. Perhaps Atmel guys writing this code just forgot to
erase old label or they might have left it deliberately for some reason.

PK> For instance, if instruction1/2 are part of a common error handler, it
PK> is practical to list the name of each error contrition with different
PK> label names, although the error handler code is common.

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.



Relevant Pages

  • Re: ARM assembler: labels
    ... PK> Typically label1 and label2 would be descriptive names. ... PK> Look at the code where you have the branch/jump instruction to ... PK> label names, although the error handler code is common. ...
    (comp.arch.embedded)
  • RE: Autosizing and column spanning conundrum
    ... If I set the column span of both the label1 and the label created at run ... I set the BackColor of the label1 to the ... TableLayoutPanel and the new Label named label2. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Modeling the condition code register in register allocation
    ... model the condition code register properly. ... IF d GOTO label1 ELSE GOTO label2 ... e' -> %rsi ...
    (comp.compilers)
  • Re: Wecker
    ... Will einen Wecker machen. ... Timer der jede Sekunde tickt. ... in Label1 kann man die Stunden und in Label2 die Minuten eingeben, ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Wecker
    ... Timer der jede Sekunde tickt. ... in Label1 kann man die Stunden und in Label2 die Minuten eingeben, ... Nur dass man in Labels nichts eingeben kann. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)