Question: Find the errors in the following code There are 5 of them. NAMESPACE main STATIC_iar_program_start STATIC_iar_data_init3 SECTION.intvec: CODE (2) THUMB iar_program_start B main SECTION.data: DATA
Find the errors in the following code There are 5 of them. NAMESPACE main STATIC_iar_program_start STATIC_iar_data_init3 SECTION.intvec: CODE (2) THUMB iar_program_start B main SECTION.data: DATA (2) _ iar_data_init3: fib DS16 24 THUMB main LDR R5, = fib MOV R0, #24 MOV R1, #1 MOV R2, #1 STR R1, [R5] STR R2, [R5, #1] MOV R4, #2 Fib_loop ADD R3, R2, R1 STR R3, [R5, R4] MOV R1, R2 MOV R2, R3 ADD R4, R4, #1 CMP R0, R4, R4 BLE Fib_loop END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
