Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with ARM assembly program : Using the following code as basic : 1 ) Write a program code that is able to
I need help with ARM assembly program :
Using the following code as basic :
1 ) Write a program code that is able to calculate the following : Result = A + ( B * C ) - D
Place the result as the return value so you can print it afterwards in the command prompt.
2) This time, use MLA instruction to reduce the number of instructions in question 1.
Place the result as the return value so you can print it afterwards in the command prompt.
- I need to save two questions in separate .s file. ( Please use the given source to complete ).
Thank you very much.
@ File: labe.s global start start: MOV R0, #1 MOV R1, #4 ADD Re, Re, R1 @Moves the constant 1 to the Register Re @ Moves the constant 4 to the Register R1 a The lines below exit the code back to the command line prompt @ Register R7 holds the System call number @ Syscal1 #1 indicates exit @Moves the constant 1 to the Register R7 MOV R7, #1 SWI e Executes Software Interrupt determined by R7Step 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