Hello all I want to run project which has two assembly files added to it.I am giving an example below.I have two assembly files named biggest.a and biggest_seg.a The program will find the biggest number between 2 numbers. A part of the code is in the biggest_seg.a file.I want to give a Branch to the label "compute" in the file biggest_seg.a from biggest.a and it is not working. when i build the program i am getting the error biggest.a(12): error A45: UNDEFINED SYMBOL the program looks like this biggest.a
Area biggest, code, AT 0x40000000 value1 EQU 34 value2 EQU 45 Entry mov r5,#value1 mov r1,r5 mov r2, #value2 Cmp r1,r2 BEQ compute ;target is in biggest_seg.a Mov r1,r2 SWI 0x123
Area biggest_seg, code, AT 0x40000028 compute MOV r3,r2 SWI 0x123 ; ARM semihosting SWI end