Question

Translate the following instructions from Pep/9 machine language: (Describe what each instruction does.) D1 FC 15...

Translate the following instructions from Pep/9 machine language: (Describe what each instruction does.)

  • D1 FC 15 F1 00 21 90 00 20 F1 00 21 F1 FC 16 00 zz
  • What does the overall program do?

Homework Answers

Answer #1

Assembler Input

LDBA 0xFC15,d ;Input first character
STBA 0x0013,d ; Store first character
LDBA 0xFC15,d ;Input second character
STBA 0xFC16,d ;output second character
LDBA 0x0013,d ;load first character
STBA 0xFC16,d ;output first character

STOP ;Stop

-BLOCK ;Storage for first character

-END

Assembler Output :

D1 FC 15 F1 00 21 90 00 20 F1 00 21   F1

FC 16 00 ZZ

Program Input :

up

Program Output :

pu

PEP/9 has three symbolic trace features :

  • global tracer for global variables
  • stack tracer for parameters and local variables
  • heap tracer for dynamically allocated variables
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Take the following program and translate it into PEP/9 assembly language: #include using namespace std; int...
Take the following program and translate it into PEP/9 assembly language: #include using namespace std; int fib(int n) { int temp; if (n <= 0)    return 0; else if (n <= 2)    return 1; else {    temp = fib(n – 1);    return temp + fib(n-2); } } int main() {    int num;    cout << "Which fibonacci number? ";    cin >> num;    cout << fib(num) << endl;    return 0; } You must...
Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std;...
Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std; int theArray[] = { 5, 11, -29, 45, 9, -1}; void sumPos(int ary[], int len, int &sum) {    sum = 0;    for (int i = 0; i < len; i++)            if (ary[i] > 0)                sum = sum + ary[i]; } int main() {    int total;    sumPos(theArray, 6, total);    for (int k=0; k < 6; k++)      cout...
Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std;...
Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std; int fib(int n) { int temp; if (n <= 0)    return 0; else if (n <= 2)    return 1; else {    temp = fib(n – 1);    return temp + fib(n-2); } } int main() {    int num;    cout << "Which fibonacci number? ";    cin >> num;    cout << fib(num) << endl;    return 0; } You...
Use the following dataset and answer the following questions. x 6 15 9 21 20 18...
Use the following dataset and answer the following questions. x 6 15 9 21 20 18 y 16 25 20 35 40 29 Please do problems (b), and (c) BY HAND. You may use your calculator. a) The following scatter diagram has been taken from Minitab for the above data. What does the above scatter diagram indicate about the relationship between the two variables? b) Find the intercept of the estimated regression equation (b0). c) Find the slope of the...
And need to be writing in C++ language Programm need to start with   #include<fstream> Prepare a...
And need to be writing in C++ language Programm need to start with   #include<fstream> Prepare a text file data_in.txt with the following information (highlight the piece of text below with numbers and copy it to a text file): 54, 70, 75, 63, 17, 59, 87, 16, 93, 81, 60, 67, 90, 53, 88, 9, 61, 8, 96, 98, 12, 34, 66, 76, 38, 55, 58, 27, 92, 45, 41, 4, 20, 22, 69, 77, 86, 35, 19, 32, 49, 15,...
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in...
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in BL. Bits 6-7 in BL should be cleared, and AL should be unchanged             Mov al, bl       And 00111111, bl       Write a sequence of two instructions that copies the integer in bits 4-7 from AL register into bits 0-3 of the BL register. Upper 4 bits of AL and BL will be cleared             Shr al, 4       Mov bl,...
Answer the following question for any pilgrimage of your choice 1) What is name of your...
Answer the following question for any pilgrimage of your choice 1) What is name of your pilgrimage site? 2) Where is located? 3) Can you make a pilgrimage at any time or does it need to be on a certain day to coincide with a celebration/ceremony/time of year? 4) Can you visit alone or must you be with a group? 5) Do you know anyone that has been to this place? 6) If so, asked them for five things you...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue...
QUESTION 1 What does the following code segment output? int red, blue; red = 7; blue = red + 2 * 5 red++; blue = blue + red; cout << blue; 4 points    QUESTION 2 Is the following statement true or false? The Boolean expression in the following if statement will be true for all values of x in the range from 10 to 20 (including the endpoints) and false for all other values: int x; if (x >=...
Read the following three situations. Describe what you would do in EACH situation. Integrate the elements...
Read the following three situations. Describe what you would do in EACH situation. Integrate the elements of reasoning and intellectual standards in your writing to show an understanding of the material behind your personal example Your essay should be 500-750 words in length and include the use of at least two (2) elements of reasoning and two (2) intellectual standards for EACH of the three (3) scenarios you will be discussing. Do not worry about your answers being right or...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as...
Do the following problems. 1. Each of three barrels from a manufacturing line are classified as either above (a) or below (b) the target weight. Provide the ordered sample space. 2. The heat on each of two soldered parts is measured and labeled as either low (l), medium (m), or high (h). State the number of elements in the ordered sample space. 3. Consider the set of Beatles songs with a primary writer as either Paul McCartney (P) or John...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT