Question: 4. Translate the following C program into Pep/9 assembly language: #include int main() { int numl; int num2; } scanf(%d, &numl); num2 = -numl;

4. Translate the following C program into Pep/9 assembly language: #include int main() { int numl; int num2;

4. Translate the following C program into Pep/9 assembly language: #include int main() { int numl; int num2; } scanf("%d", &numl); num2 = -numl; printf("numl printf ("num2 return 0; = %d ", num1); %d ", num2) ;

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer The code is as follow ORG 3000 Start address of the program START LDWA STR1 Load ... View full answer

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 Programming Questions!