/* -------------------------------------------------- Define required labels for EGTAPI -------------------------------------------------- */ .global main, Stop, CodeEnd, DataStart, DataEnd /* -------------------------------------------------- Begin of the program instructions -------------------------------------------------- */ .text main: mov r0, #10 // r0 = 10 // Compare 2 equal values: check the flags !!! cmp r0, #10 // Compare against a smaller value: check the flags !!! cmp r0, #6 // Compare against a larger value: check the flags !!! cmp r0, #16 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