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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
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
Questions on the website: 13722361