/* -------------------------------------------------- Define required labels for EGTAPI -------------------------------------------------- */ .global main, Stop, CodeEnd .global DataStart, DataEnd .global k, N /* -------------------------------------------------- Begin of the program instructions -------------------------------------------------- */ .text main: movw r0, #:lower16:a // Move the address of var "a" movt r0, #:upper16:a // into register r0 movw r1, #:lower16:b // Move the address of var "b" movt r1, #:upper16:b // into register r1 Stop: CodeEnd: nop /* -------------------------------------------------- Begin of the permanent program variables -------------------------------------------------- */ .data DataStart: a: .4byte 15 // int a b: .2byte 15 // short b DataEnd: .end