Question

The computer is a PDP-8. The program counter (PC) is a 400. The contents of the various memory locations are follows:

1050 320 3620

Show what will be stored in the AC in each case if the

content of location 400 is:

a)    1152

b)    1352

c)    1552

d)    1752

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) For the instruction 1152 in octal the equivalent binary instruction is 001 001 101 010.

First bit on the left most side is bit #0. The right­ most bit is bit #11. Bit #4 is 0. This means the ad­dress is on Page 0. Hence, the last 7 bits give the address = 152. Bit #5 is also 0. So, it is direct ad­dressing. Hence, location 152 contains the operand. Thus, the AC gets the value of location 152, which is 1050.


(b) For the instruction 1352 in octal the equivalent binary instruction is 001 011 101 010. Bit #4 is 1. This means that the address is on the same page as the in­struction. But, the instruction is in location 400, i.e., on Page 2. Hence, the address is also on Page 2. Hence, the address is given by the first five bits of the PC concatenated with the last seven bits of the instruction. The program counter contains 0400, i.e. 000 100 000 000 and the instruction is 001 011 101010. Hence, the add­ress is: 00010 1101 010, i.e., 0552. The contents of location 552 are 320. So, 320 gets stored in the AC.


(c) For the instruction 1552 in octal the equivalent binary instruction is 001 101 101 010. Bit #4 is 0. So, address is on Page 0. Thus, the ad­dress is: 00000 1101 010

= 000 001 101 010

= 0 152

The Bit #3 is 1. This means it is Indirect Addressing. Hence, the location 0152 on Page 0 contains not the operand itself, but another address where the operand can be found. The content 1050 of location 152 is therefore an add­ress. So, the content of location 1050 or 5 is the operand which goes to the AC.


(d) For the instruction 1752 in octal the equivalent binary instruction is 001 111 101 010. The #4 bit is 1. So, it indicates the same page as the instruction at 400, i.e. at 000 100 000 000. Hence, the address is: 00010 1101 010

000 101 101 010 = 0552.

Now, the #3 bit is 1. So, it means indirect address­ing, and the content of 552 is an address of the op­erand. The content of 552 is: 320.
Hence, 320 is the address of the operand. Now, the content of 320 is 3620. Hence, 3620 is the operand which goes to the AC.
So, the AC contains the following:

(a) 1050

(b) 320

(c) 5

(d) 3620

Hope this helps.

Add a comment
Know the answer?
Add Answer to:
The computer is a PDP-8. The program counter (PC) is a 400. The contents of the...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1) We would like to design a bus system for 32 registers of 16 bits each....

    1) We would like to design a bus system for 32 registers of 16 bits each. How many multiplexers are needed for the design? Select one: 5 16 1 4 32 2) The basic computer can be interrupted while another interrupt is being serviced. Select one: True False 3) If the Opcode bits of an instruction is 111, then the basic computer instruction type is either memory-reference or input-output. Select one: True False 4) The content of AC in the...

  • computer analysis

    Questions1.  The function L is defined as L(1) = 2,L(2) = 1,L(3) = 3,L(4) = 4 and for n ≥ 4,L(n + 1) = L(n) + L(n − 1) + L(n − 2)L(n − 3)i.e., the (n + 1)-th value is given by the sum of the n-th, n − 1-th and n − 2-th values divided by the n − 3-th value.(a)  Write an assembly program for computing the k-th value L(k), where k is an integer bigger than...

  • Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped...

    Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped with a Micro-1 processor Memory contains an array of integer cells: int cell[] = new int[CAP]; where CAP is the capacity of memory. Initially this is set to 256. Internally, the Micro-1 processor is equipped with eight 32-bit data/address registers and two 32 bit control registers: PC, the program counter, contains the address of the next instruction to execute. IR, the instruction register, contains...

  • C Program Please! Thanks! Spring 2019 ECE 103 Engineering Programming Problem Statement A standard deck of playi...

    C Program Please! Thanks! Spring 2019 ECE 103 Engineering Programming Problem Statement A standard deck of playing cards contains 52 cards. There are four suits (heart, diamond club +, spade+) and thirteen ranks (ace, 2 thru 10,jack, queen, king) per suit. Rank Numeric Value 10 10 10 10 gueen 10 Write a program that does the following: I. Simulates a randomized shuffling of a 52 card deck 2. Determines how many combinations of 21 exist in the deck by following...

  • i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due...

    i need help with a mips program to to covert roman numerals to real numbers Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...

  • This assignment is comprised of 3 parts: ​All files needed are located at the end of...

    This assignment is comprised of 3 parts: ​All files needed are located at the end of the directions. Part 1: Implementation of Dynamic Array, Stack, and Bag First, complete the Worksheets 14 (Dynamic Array), 15 (Dynamic Array Amortized Execution Time Analysis), 16 (Dynamic Array Stack), and 21 (Dynamic Array Bag). These worksheets will get you started on the implementations, but you will NOT turn them in. ​Do Not Worry about these, they are completed. Next, complete the dynamic array and...

  • CASE 8 Unlocking the Secrets of the Apple iPhone in the Name of access the male...

    CASE 8 Unlocking the Secrets of the Apple iPhone in the Name of access the male San Bernardino suspect's iPhone 5c. Cook stated: Antiterrorism We are challenging the FBI's demands with the deepes respect for American democracy and a love of our country. We believe it would be in the best interest of everyone to step back and consider the implications While we believe the FBI's intentions are good, if would be wrong for the w e nt to force...

  • hello there, i have to implement this on java processing. can someone please help me regarding...

    hello there, i have to implement this on java processing. can someone please help me regarding that? thanks War is the name of a popular children’s card game. There are many variants. After playing War with a friend for over an hour, they argue that this game must never end . However! You are convinced that it will end. As a budding computer scientist, you decide to build a simulator to find out for sure! You will implement the logic...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT