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 <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...
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,...
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...
Describe what the following query does using lyrics database with mysql. lyrics database is posted below...
Describe what the following query does using lyrics database with mysql. lyrics database is posted below 1.) select m.lastname, m.firstname, s.lastname from members m inner join salespeople s using (salesID) order by m.lastname asc; 2.) select studioID, studioname, base from salespeople sa inner join studios st on (sa.salesID = st.salesid) where base < 300 3.) SELECT artistName FROM Artists WHERE artistID IN (SELECT artistID FROM Titles) DROP TABLES IF EXISTS Artists,Genre, Members, Titles, Tracks,SalesPeople,Studios,XrefArtistsMembers; DROP TABLES IF EXISTS Authors,Publishers,Titles,Title_Authors,Royalties; DROP...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class...
1) Consider the following Java program, which one of the following best describes "setFlavor"? public class Food {     static int count;     private String flavor = "sweet";     Food() { count++; }     void setFlavor(String s) { flavor = s; }     String getFlavor() { return flavor; }     static public void main(String[] args) {         Food pepper = new Food();         System.out.println(pepper.getFlavor());     } } a. a class variable b. a constructor c. a local object variable d....
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...