Problem 1. Program Execution

Problem 1. Program Execution

Recall the discussion with Fig. 3.4 and Fig. 3.5 showing the snapshot of instruction cycles over the program execution on a hypothetical machine. Assume that the hypothetical machine also has two I/O instructions (in addition to the existing three instructions):

Don't use plagiarized sources. Get Your Custom Essay on
Problem 1. Program Execution
Get a plagiarism free paper Just from $13/Page
Order Essay

 

0110 = Load AC from I/O

0111 = Store AC to I/O

 

In these cases, the 12-bit address identifies a particular I/O device. Assume that the PC at step 1 is 400 (in hexadecimal). Also assume that the next value retrieved from device 8 is 6 and that location 940 contains a value of 9. Show the program execution for the following program:

 

  1. Load AC from device 8 (Step 1 and 2)
  2. Add contents of memory location 940 (Step 3 and 4)
  3. Store AC to device 9 (Step 5 and 6)

 

To show the program execution, fill out the registers and memory at each step and give a brief explanation (as in textbook page 79).

 

 

Step 1:

  Memory   Registers  
400 6 0 0 8   4 0 0 PC
401 5 9 4 0   0 0 0 0 AC
402 7 0 0 9     IR
       
940 0 0 0 9      
941 0 0 1 0      

 

 

Step 2:

  Memory   Registers  
400 6 0 0 8     PC
401 5 9 4 0     AC
402 7 0 0 9     IR
       
940        
941        

 

 

Step 3:

  Memory   Registers  
400 6 0 0 8     PC
401 5 9 4 0     AC
402 7 0 0 9     IR
       
940        
941        

 

 

Step 4:

  Memory   Registers  
400 6 0 0 8     PC
401 5 9 4 0     AC
402 7 0 0 9     IR
       
940        
941        

 

 

Step 5:

  Memory   Registers  
400 6 0 0 8     PC
401 5 9 4 0     AC
402 7 0 0 9     IR
       
940        
941        

 

 

Step 6:

  Memory   Registers  
400 6 0 0 8     PC
401 5 9 4 0     AC
402 7 0 0 9     IR
       
940        
941        

 

 

 

Master Homework
Order Now And Get A 20% Discount!
Pages (550 words)
Approximate price: -

Advantages of using our writing services

Custom Writing From Scratch

All our custom papers are written by qualified writers according to your instructions, thus evading any case of plagiarism. Our team consists of native writers from the USA, Canada, and the Uk, making it convenient for us to find the best to handle your order.

Unlimited Free Revisions

If you feel your paper didn't meet all your requirements, we won't stop till it's perfect. You're entitled to request a free revision within 7 days after we submit your paper.

Quality Writing In Any Format

If you have issues with citing sources and referencing, you need not worry. Our writers are highly knowledgeable in referencing, including APA/MLA/Havard/Chicago/Turabian and all other formatting styles.

Fast Delivery And Adherence To The Deadline

All our custom papers are delivered on time, even the most urgent. If we need more time to perfect your paper, we may contact you via email or phone regarding the deadline extension.

Originality & Security

At Master Homework, your security and privacy is our greatest concern. For this reason, we never share your personal information with third parties. We use several writing tools to ensure your paper is original and free from plagiarism.

24/7 Customer Support

Our agents are online 24 hours a day, 7 days a week, and are always ready to serve you. Feel free to contact us through email or talk to our live agents whenever you need assistance with your order.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

We work nonstop to see the best client experience.

Pricing

Flexible Pricing

We offer pocket-friendly prices that coincide with the preferred client's deadline.

Communication

Admission help & Client-Writer Contact

Our support team is always ready to ensure vital interaction between you and the writer whenever you need to elaborate on something.

Deadlines

Paper Submission

We deliver our papers early within the stipulated deadlines. We are glad to help you if there should be an occurrence of any alterations required.

Reviews

Customer Feedback

Your review, positive or negative, is of great concern to us and we take it very seriously. We are, consequently adjusting our policies to ensure the best customer/writer experience.