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
Answers: 2
Engineering, 04.07.2019 16:10, TheOriginalMeyah
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
Engineering, 04.07.2019 18:10, jojoangelique13
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
Add a new assembly file to your Lab03 project called lab03b. S (use the procedure you used in Lab02...
Mathematics, 29.12.2019 15:31
Mathematics, 29.12.2019 15:31
History, 29.12.2019 15:31