pep/9 assembly language.
Chapter8: Arrays
Section: Chapter Questions
Problem 18RQ
Related questions
Question
Please help me answer the questions
![please can you translate the following c
program below to a pep/9 assembly language.
Please use the pep/9 reference in the
screenshot.
int number, base, answer;
int divide ( int numer, int denom ) {
int quotient, remain; remain = numer;
quotient = 0; while ( remain >= denom)
{ remain -= denom; quotient++; } // end for
return quotient;
} // end of divide()
void findLog (int *result, int num, int b ) { int
k; num--; *result = 0; while (num > 0) { *result
= *result + 1; num = divide(num, b);
} // end while
} // end of findLog()](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2c3cc6e8-4212-49fc-9039-f156660bb377%2Fd800a10b-aaa3-4c88-9cff-2fa909d8cb56%2Fsagrc9f_processed.jpeg&w=3840&q=75)
Transcribed Image Text:please can you translate the following c
program below to a pep/9 assembly language.
Please use the pep/9 reference in the
screenshot.
int number, base, answer;
int divide ( int numer, int denom ) {
int quotient, remain; remain = numer;
quotient = 0; while ( remain >= denom)
{ remain -= denom; quotient++; } // end for
return quotient;
} // end of divide()
void findLog (int *result, int num, int b ) { int
k; num--; *result = 0; while (num > 0) { *result
= *result + 1; num = divide(num, b);
} // end while
} // end of findLog()
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning