Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an ARM assembly language program AddGT.s to add up all the numbers that are great than 5 in the number array NUM1. Look at
Write an ARM assembly language program AddGT.s to add up all the numbers that are great than 5 in the number array NUM1. Look at the following given code for more details and complete it.
The semicolon is uded to lead an inline documentation When you write your program, you could have your info at the top document lock For Exmple: Your Name, Student Number, what the program is for, and what it does etc. Directives PRESERVE8 THUMB Vector Table Mapped to Address 0 at Reset Linker requires __Vectors to be exported AREA RESET, DATA, READONLY EXPORT Vectors Vectors DCD 0x20001000 DCD Reset_Handler reset vector stack pointer value when stack is empty ALIGN Your Data section AREA DATA DCD 0 DCD SUM DCD DCD 3, -7, 2, -2, 10, 20, 30 OINTER DCD NUIM1 The program Linker requires Reset_Handler AREA MYOODE, OODE, READONLY ENTRY EXPORT Reset_Handler eset_Handler User Code Start from the next line Please complete the program to add up all the mumbers in the array NUM1 that are greater than 5 Put the sum in the register RO. The semicolon is uded to lead an inline documentation When you write your program, you could have your info at the top document lock For Exmple: Your Name, Student Number, what the program is for, and what it does etc. Directives PRESERVE8 THUMB Vector Table Mapped to Address 0 at Reset Linker requires __Vectors to be exported AREA RESET, DATA, READONLY EXPORT Vectors Vectors DCD 0x20001000 DCD Reset_Handler reset vector stack pointer value when stack is empty ALIGN Your Data section AREA DATA DCD 0 DCD SUM DCD DCD 3, -7, 2, -2, 10, 20, 30 OINTER DCD NUIM1 The program Linker requires Reset_Handler AREA MYOODE, OODE, READONLY ENTRY EXPORT Reset_Handler eset_Handler User Code Start from the next line Please complete the program to add up all the mumbers in the array NUM1 that are greater than 5 Put the sum in the register ROStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started