/* -------------------------------------------------- Define required labels for EGTAPI -------------------------------------------------- */ .global main, Stop, CodeEnd .global DataStart, DataEnd /* -------------------------------------------------- Begin of the program instructions -------------------------------------------------- */ .text main: mov r0, #15 // Instr code: e3 a0 00 0f (15 is stored in binary!) mov r1, #-15 mov r2, r1 movw r2, #:lower16:123456 movt r2, #:upper16:123456 // mov r2, #123456 // mov cannot handle very large values // Comment the above instruction to compile Stop: CodeEnd: nop /* -------------------------------------------------- Begin of the permanent program variables -------------------------------------------------- */ .data DataStart: DataEnd: .end