[SOLVED] CSE2240 PROGRAM 1

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab4-ahhyid.zip (163.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Write an ARM assembly program that will evaluate the following
expression, placing the result in register 0:

 

r0 = ((-C + D) * (F – E)^2) / 16

 

Your program must use the following data definitions:

 

C DCD 234

D DCD 401

E DCD 9

F DCD 100

 

You will need to use the LDR instruction to load C, D, E and F into
registers. You will need to use LSR to simulate division by 16. Use a
hexadecimal calculator to verify that your result is correct. Be sure to
comment your program well. Submit your .s file (that is the file
containing your source code) through Canvas.

 

  • Lab4-ahhyid.zip