|
b label // Branch to label or bal label // Branch always to label |
Effect:
|
Example: consider the following program
.text main: mov r1, #1111 // Instructions executed in sequence mov r2, #1111 // "normal" program flow mov r3, #1111 b there // Branch to location marked by "there" mov r4, #2222 // These instructions are SKIPPED over ! mov r5, #2222 mov r6, #2222 there: mov r4, #4444 // Out of order program flow mov r5, #4444 mov r6, #4444 |
The program flow will execute these instructions:
mov r1, #1111 // Instructions executed in sequence mov r2, #1111 // "normal" program flow mov r3, #1111 mov r4, #4444 // Out of order program flow mov r5, #4444 mov r6, #4444 |
How to run the program:
|