/* -------------------------------------------------- Define required labels for EGTAPI -------------------------------------------------- */ .global main, Stop, CodeEnd, DataStart, DataEnd /* -------------------------------------------------- Begin of the program instructions -------------------------------------------------- */ .text main: mov r0, #15 // r0 = 5 - try changing this to 15 // Compare 2 values... cmp r0, #10 blt there // Branch to label "there" if r0 < 10 mov r1, #1111 mov r2, #1111 mov r3, #1111 there: mov r4, #4444 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