a. (30 pts) Write an assembly language program that works like the following C-like program: ; LOOP QUESTION sum = 0 x =
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
a. (30 pts) Write an assembly language program that works like the following C-like program: ; LOOP QUESTION sum = 0 x =
QUESTION sum = 0 x = 10 while (x >= 6) { sum = sum + 2 * x X-- }| b. (30 pts) Write an assembly language program that works like the following C-like program: ; ARRAY QUESTION int A[5] = {3, 11, 8, 17, 19}; int B[5]; i=0 while (i <=5) { B = 2 * A + 1; i++; }
a. (30 pts) Write an assembly language program that works like the following C-like program: ; LOOP