/* -------------------------------------------------- Define required labels for EGTAPI -------------------------------------------------- */ .global main, Stop, CodeEnd, DataStart, DataEnd /* -------------------------------------------------- Begin of the program instructions -------------------------------------------------- */ .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 Stop: CodeEnd: nop /* -------------------------------------------------- Begin of the permanent program variables -------------------------------------------------- */ .data DataStart: a: .4byte 4 // a contains the value 4 b: .4byte 5 // b contains the value 5 c: .skip 4 // c is not initialized (will contain 0) DataEnd: .end