Question: i want to convert this program from C language to Assembly langauge #include stdio.h int main() { int i, a, b, c, d, e, f,

i want to convert this program from C language to Assembly langauge

#include "stdio.h"

int main()

{

int i, a, b, c, d, e, f, j, k, l, m, s;

j = 0;

k = 0;

l = 0;

m = 0;

s = 0;

printf("Input UCF NID ");

scanf("%d", &a);

scanf("%d", &b);

scanf("%d", &c);

scanf("%d", &d);

scanf("%d", &e);

scanf("%d", &f);

for (i = 0; i < b; i++){

j = j + a;

};

for (i = 0; i < 18; i++) {

k = k + c;

};

for (i = 0; i < 9; i++) {

l = l + d;

};

for (i = 0; i < e; i++) {

m = m + f;

};

s = (j + k - l - m);

printf("S_ten = %d ", s);

int n;

int x = s;

printf("S_two = ");

for (n = 31; n >= 0; n--)

{

putchar('0' + ((x >> n) & 1));

}

printf(" ");

return 0;

}

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!