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…