Question: need help with ARM assembly program : This is the source code for arm assembly : I need to write a two program code that

need help with ARM assembly program :

This is the source code for arm assembly :

 need help with ARM assembly program : This is the source

I need to write a two program code that is able to calculate the following using above code :

1 ) RESULT = A + ( B * C ) - D

2) 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.

Thank you.

@ 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!