Question: 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 R7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
