Question: Identify and correct the errors in the following programs .org 0x1000 // Start at memory location 1000 .text // Code section .global _start _start: .text

Identify and correct the errors in the following programs
.org 0x1000 // Start at memory location 1000 .text // Code section .global _start _start:
.text // code section // Copy contents of first element of Vec1 to Vec2 LDR R0, =Vec1 LDR R1, =Vec2 LDR R2, [R0] STR R2, [R1] // Copy contents of second element of Vec1 to Vec2 ADD R0, R0, #2 ADD R1, R1, #2 LDR R2, [R0] STR R2, [R1] // Copy contents of second element of Vec1 to Vec2 ADD R1, R1, #4 ADD R1, R1, #4 LDR R2, [R0] STR R2, [R2] // End program _stop: B _stop .data // Initialized data section Vec1: .word 1, 2, 3 .bss // Uninitialized data section Vec2: .word 6
.end
Stopped Step Into FZ Step Over Carl-F2 Step Out Shift-12 Continue F3 Stop 54 Restart Ctrl-R Reload Cori-Shift-L File - Help * Registers Refresh Devices LEDS ff2EGG ro ff28640 r2 r3 r4 r5 r6 r7 Switches DDDDDDDDDD IV 9 8 7 6 5 4 3 2 1 0 All G Push buttons DDDD 3 2 1 0 All Seven-segment displays IRQ 73 ff2SG | b BOOG 9600 BODGOGO B0069898 DODGOGO B0869606 B0069898 BOGDGDE 00000000 AQAQAAA AOAGOGOA 00000000 00000000 BOOG9000 H0000000 Bogoo AOAGGIAN/CVS AOAG900 N/CV ? r9 r10 1200020 r12 sp Ir po cpsr spsr DJTAG UART IRQ B0 1201000 E Editor (Ctrl-E) Compile and Load IFS) Language: ARMv7 untitled.s (changed since save) (changed since compile] 10 11 / 12 .org 0x1800 // Start at memory location 1080 13 . text // Code section 14 .global start 15 start: IG 17 .text // corde section 18 // Copy contents of first element of Vecl to Vec2 19 LDR RG, Veci 28 LDR RI, Vec2 21 LDR R2, [RO] 22 SIR K2, [R] 23 // Copy contents of second clcncnt of Veel to Vec2 24 ADD RG, RO, #2 25 ADD RI, RI, #2 7 | LK R2, [P6] 27 STR R2, LRIJ 28 // Copy contents of second element of Vecl to Vec? 29 ADD R1, R1, 14 30 ADD R1, R1, 14 31 LDR R2, [RO] 32 SIR R2, [12] 33 // End program 34 _stop: 35 B SLOD 36 .data // Tniliaired data section 37 Veci: 38 word 1, 2, 3 39 .bss i uninitialized data section 40 Vec2: 41 .word 6 42 43 end SO BOOG D600 s1 AOAGORA s2 HePEARAR 53 BO000000 Registers i Call Stack # Trace Breakpoints Watchpoints at Symbols It Counters Settings Read FIFO: 0 Write FIFO: 0 IRQ 29 fftecoso Number Display Options Size: Word Format: Hexadecimal Memory words per row: 4 Cortex-A9 Private Timer 6249999 Once Stop TOHO TRO 72 11202000 Interval Timer 62-19999 Once Stop TO=0 IRQ 74 11202020 Interval Timer 6249999 Once Stop TOO Clear Editor (Ctrl-E) Disassembly (Ciri-D) Q Memory (Curl-M) Messages Compiling.. Assemble: an-allera-cabi-49 - loal-abi-soll -ar chari-y - cpucor Lex-a9 -purieon-Tp16 --guwar 12 -o work/as FroLT4.5. work/asmi voL14.5: Assembler messages: work/asmt voL 14.5:41: Error: attempt to store non-zero value in section .bss' Compilc failed. VGA pixel buffer CEBERG
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
