AW: [En-Nut-Discussion] ASM Branch
Ernst Stippl
ernst at stippl.org
Thu Nov 2 07:26:47 CET 2006
Hi Tim!
The "BX" instruction jumps to an address hold in a register (which the
instructions operand), and may optionally switch to Thumb mode.
The "B" instruction jumps to an address hold in the instruction itself. I
think thats what you need.
regards
ernst
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Tim DeBaillie
Gesendet: Donnerstag, 02. November 2006 00:35
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] ASM Branch
I am working on the ethernut 4.2 ethernet based bootloader for the
AT91SAM7X256. I have code at a particular location (0x10100) in flash and
would like to "jump" to it. I believe the right command is:
asm volatile ("bx #0x10100");
But this doesn't work. I believe this may have something to do with R15 in
the microcontroller (the program counter), but I am unsure.
Does anyone want to lend a hand with this arm instruction set?
Tim
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.21/509 - Release Date: 31.10.2006
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.21/509 - Release Date: 31.10.2006
More information about the En-Nut-Discussion
mailing list