Question: Assembly (ARM) write two function. One to compute quadratic (ax^2 + bx + c). One to compute sqrt(n). I have attached the other problems I

Assembly (ARM) write two function. One to compute quadratic (ax^2 + bx + c). One to compute sqrt(n). I have attached the other problems I solved when writing the ARM Assembly code for example. Best CORRECT answer will get many points. Thanks!

Assembly (ARM) write two function. One to compute quadratic (ax^2 + bx

+ c). One to compute sqrt(n). I have attached the other problems

Course Project Filename Date COEN 20 (Embedded Systems) #4 : lab4. : 02/05/2018 k/ unified cortex-m4 .syntax . cpu .text .thumb func .align 2 Discriminant .global .global Root1 global Root2 .global Quadratic .global SquareRoot Discriminant: MUL LSL MLS BX /7 Computes b*b // Computes a4 R1, R1,R1 RO, RO,2 R0, R0, R2,R1 /7 Computes b 2 - 4a*c LR Root1: LDR SUB ADD LSL SDIV R3, =0 R1, R3, R1 R1,R1,R2 R0, Re,1 R0, R1, RO LR // Store the value in R3 // Store in R1, 0-b =-b /7 Computes-b +sqrtd /7 Computes 2*a /7Computes-b sqrt d / 2a Root2: LDR SUB SUB LSL SDIV BX .end R3, 0 R1, R3,R1 R1, R1,R2 RO, R0,1 R0, R1, R0 LR // Store the value in R3 // Store in R1, 0-b =-b /7Computes -b -sqrt_d // Computes 2*a /7 Computes-b-sqrt_d / 2%a Course Project Filename Date COEN 20 (Embedded Systems) #4 : lab4. : 02/05/2018 k/ unified cortex-m4 .syntax . cpu .text .thumb func .align 2 Discriminant .global .global Root1 global Root2 .global Quadratic .global SquareRoot Discriminant: MUL LSL MLS BX /7 Computes b*b // Computes a4 R1, R1,R1 RO, RO,2 R0, R0, R2,R1 /7 Computes b 2 - 4a*c LR Root1: LDR SUB ADD LSL SDIV R3, =0 R1, R3, R1 R1,R1,R2 R0, Re,1 R0, R1, RO LR // Store the value in R3 // Store in R1, 0-b =-b /7 Computes-b +sqrtd /7 Computes 2*a /7Computes-b sqrt d / 2a Root2: LDR SUB SUB LSL SDIV BX .end R3, 0 R1, R3,R1 R1, R1,R2 RO, R0,1 R0, R1, R0 LR // Store the value in R3 // Store in R1, 0-b =-b /7Computes -b -sqrt_d // Computes 2*a /7 Computes-b-sqrt_d / 2%a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!