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
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:20
Acarnot refrigerator operates in a room in which the temperature is 21°c and of power when operating. if the food compartment of the refrigerator is consumes 3 kw to be maintained at 2°c, determine (a) the coefficient of performance of the cycle and (b) the rate of heat removal from the food compartment. refrigerator cycle that has a higher coefficient of performance than that of the discussed (e) is it possible to develop a carn ot refrigerator, operating between the same temperature limits? explain
Answers: 2
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
Mathematics, 31.07.2019 03:30
question
Mathematics, 31.07.2019 03:30