b***@googlemail.com
2006-12-27 00:51:12 UTC
I am facing some difficulty understanding the ARM assembler
instrucitons :
1. What does the following snippet means ? Especially the add r0,
pc,#-(8+.-StackData) . Is " . " and "pc " different ?
add r0, pc,#-(8+.-StackData) @ @ where to read values (relative)
ldmia r0, {r1-r6}
StackData:
.word AT91_SVC_Stack_Begin
.word AT91_IRQ_Stack_Begin
.word AT91_FIQ_Stack_Begin
.word AT91_ABT_Stack_Begin
.word AT91_UND_Stack_Begin
.word AT91_USER_Stack_Begin
2.
An assembly line " .word 0x55AA55AA " translates into "strpl r5, [sl,
#1450]! " . HOW ? and what does it mean ?
3.
whts are the meanings of labels, .equ, .word, .global and .extern ? (
in terms of scope and memory allocation with clear explanation on what
goes to what segments ). I have a clear understanding of the equivalent
in highlevel, but kinda stumped by the assembler. I had quite an
extensive look at GNU "as" with lil success.
4
in a symbol file what are the meaning of following :
"a"
"A"
"t"
"T"
"d"
"D" and how do they relate to labels, .equ, .word, .global and .extern
?
Hope some1 can throw some lite.
instrucitons :
1. What does the following snippet means ? Especially the add r0,
pc,#-(8+.-StackData) . Is " . " and "pc " different ?
add r0, pc,#-(8+.-StackData) @ @ where to read values (relative)
ldmia r0, {r1-r6}
StackData:
.word AT91_SVC_Stack_Begin
.word AT91_IRQ_Stack_Begin
.word AT91_FIQ_Stack_Begin
.word AT91_ABT_Stack_Begin
.word AT91_UND_Stack_Begin
.word AT91_USER_Stack_Begin
2.
An assembly line " .word 0x55AA55AA " translates into "strpl r5, [sl,
#1450]! " . HOW ? and what does it mean ?
3.
whts are the meanings of labels, .equ, .word, .global and .extern ? (
in terms of scope and memory allocation with clear explanation on what
goes to what segments ). I have a clear understanding of the equivalent
in highlevel, but kinda stumped by the assembler. I had quite an
extensive look at GNU "as" with lil success.
4
in a symbol file what are the meaning of following :
"a"
"A"
"t"
"T"
"d"
"D" and how do they relate to labels, .equ, .word, .global and .extern
?
Hope some1 can throw some lite.