Question: 31. Write an assembly language program that corresponds to the following C program: int num; int main () { scanf(%d, &num); num = num %
31. Write an assembly language program that corresponds to the following C program: int num; int main () { scanf("%d", &num); num = num % 16; printf("num = %d ", num); return 0; }
The above program takes a user-entered integer number, multiplies the integer number by 16, and then outputs the product. Therefore, if the user enters the integer number 32, the program's output is 512. Should be able to copy your Pep/9 assembly language program (Source Code) from the text box on the exam, paste that assembly language program into the Pep/9 source code window, type 32 into the Pep/9 input window, assemble, load and execute your program and that program should output a 512 in the Pep/9 output window.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
