• how pc is updated during execution of SWI and any simple instruction like mov R1,R15?

    dot-autobot
    dot-autobot

    when swi instruction is executed at that time it is said that pc is not updated yet so it is pointing to instruction next to swi instruction for example

    addr         code

    0x0000     swi 100
    0x0004    mov r1,r2
    0x0008    mov r2,r3


    so in this code when swi instruction…

    • Answered
    • over 3 years ago
    • Processors
    • Cortex-A / A-Profile forum