Re: ARM assembler: labels
- From: Sergey Kubushin <ksi@xxxxxxxx>
- Date: Tue, 26 Aug 2008 12:52:20 -0400
Mark L Pappin <mlp@xxxxxxx> wrote:
"Roman Mashak" <mrv@xxxxxxxx> writes:
_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.
"some reason" could be: documentation, or separation of purpose.
'_exception_vectors' refers to a table of vectors.
'reset_vector' refers to a single vector.
The fact that they both happen to be the same address is not important
in many situations, but the fact that the two concepts exist _is_.
There is another reason -- *.[csS] files are not the only ones that use or
define labels. There are e.g. linker scripts...
---
******************************************************************
* KSI@home KOI8 Net < > The impossible we do immediately. *
* Las Vegas NV, USA < > Miracles require 24-hour notice. *
******************************************************************
** Posted from http://www.teranews.com **
.
- References:
- Re: ARM assembler: labels
- From: Roman Mashak
- Re: ARM assembler: labels
- From: Mark L Pappin
- Re: ARM assembler: labels
- Prev by Date: Re: i need help
- Next by Date: Re: When to use Buffers for devices connected to Address and Data Bus
- Previous by thread: Re: ARM assembler: labels
- Next by thread: Re: ARM assembler: labels
- Index(es):
Relevant Pages
|