• Real Value of PC Register.
    I've been reading books on the ARM Cortex-M architecture and as already mentioned in other post, all the books are consistent in saying that the PC points four bytes (Thumb Instruction Set) forward due...
  • Addressing memory question for Cortex-M3
    First I apologize if I am in the wrong place to ask this but can't find info anywhere or I just don't know what question to ask regarding memory address for the Cortex-M3. I am very new to microcontrollers...
  • Why does ARM Branch with Link (BL) instruction considers prefetch?
    Hi, When I read the words below dot line, I don't understand why "R14 is adjusted to allow for the prefetch" Could you explain it to me? Thanks, ....... Branch with Link (BL) writes the old PC into the...
  • Question about a code snippet on ARM, Thumb state change
    Hi, I find the following code snippet online on ARM state change. Although that whole material looks solid, the second line in the blue code below is puzzling. add R1,PC,#1 ;Load address of SUB_BRANCH...
  • Could you explain this assembly line to me?
    Hi, I am learning ARM assembly code. The following is a Thumb disassembly from a short .c file: int main() {       printf("Hardware test, finish testing.\n");       return 0; } 00000000 <main>:    0:...