1. Write a C program that calls an assembly function that takes input values a and b from the C program to calculate the following: [ a 2 + ( a XXXXXXXXXXa XXXXXXXXXXa - 1)2] - [ b 2 + ( b XXXXXXXXXXb...

1. Write a C program that calls an assembly function that takes input values a and b from the C program to calculate the following: [ a 2 + ( a + 1)2 + ( a + 2)2 + . . . + (2 a - 1)2] - [ b 2 + ( b + 1)2 + ( b + 2)2 + . . . + (2 b - 1)2]. Set a = 3 and b = 2 in the C program and verify that the result is printed as 37. 2. Write a C program that calls an assembly function to obtain the determinant of a 3 ¥ 3 matrix. Set the matrix values in the C program. The first row values are {4, 5, 9}; the second row values are {8, 6, 5}, and the third row values are {2, 1, 2}. Verify that the resulting determinant is printed within CCS as -38.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here