subject
Engineering, 29.02.2020 04:15 tyreannag7696

Add a new assembly file to your Lab03 project called lab03b. S (use the procedure you used in Lab02 to add this file and make sure it gets called from main. c) In this file, write an ARMv8 program with the following specifications: Reserve space in memory for a variable called UIN of size double word. The initial value of UIN will be the sum of the digits in your UIN .The program should implement the following piece of C-code: for i -0 i <10; i++) UIN UIN-1This is what I have so far, but it is not working.

ADD X5, XZR, XZR // adding 21 to X5 to represent a 9 digit UIN

ADD X5, X5, #21

ADD X0, XZR, XZR // ADDING 10 from 0 to get 10

ADD X0, X0, #10

loop: CBZ X0, L2 // If X0 is not 0 keep looping

SUB X0, X0, #1 // SUBTRACTING 1 FROM X0 so it will loop 10 times

SUB X5, X5, #1 // subtract 1 from the sum of the UIN (21)

B loop // loop back to CBZ

L2:

STUR X5, [SP, #0] // Store final UIN answer

BR X30

.section .data

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:20
A2-m rigid tank initially contains saturated water vapor at 100 kpa. the tank is connected to a supply line through a valve. steam is flowing in the supply line at 600 kpa and 300 c. the valve is opened, and steam is allowed to enter the tank until the pressure in the tank reaches the line pressure, at which point the valve is closed. a thermometer placed in the tank indicates that the temperature at the final state is 200Β°c. determine (a) the mass of steam that has entered the tank (b) the amount of heat transfer.
Answers: 3
question
Engineering, 04.07.2019 19:10
What is the main objective of using reheat rankine cycle?
Answers: 3
question
Engineering, 04.07.2019 19:10
Air inially occupying a volume of 1 m2 at 100 kpa, 27 c undergoes three internally reversible processes in series. process 1-2 compression to 500 kpa during which pv constant process 2-3 adiabatic expanslon to 100 kpa process 3-1: constant-pressure expansion to 100 kpa (a) calculate the change of entropy for each of the three processes. (b) calculate the heat and work involved in each process. (c) is this cycle a power cycle or refrigeration cycle?
Answers: 3
You know the right answer?
Add a new assembly file to your Lab03 project called lab03b. S (use the procedure you used in Lab02...
Questions
question
English, 26.10.2019 04:43
question
Mathematics, 26.10.2019 04:43
Questions on the website: 13722360