Answered step by step
Verified Expert Solution
Link Copied!

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 :

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

6. What is moral hazard? How do banks reduce this problem? LOP8

Answered: 1 week ago