Question: Introduction to Computing Homework 5 Chapter 5 Q8) A simple computer has 4 data registers (RO to R3), 1024 words in memory and 16 different

 Introduction to Computing Homework 5 Chapter 5 Q8) A simple computer

Introduction to Computing Homework 5 Chapter 5 Q8) A simple computer has 4 data registers (RO to R3), 1024 words in memory and 16 different instructions (add, subtract, AND, OR ..... Given that each word in memory is 2 bytes in size. Answer the following questions about this computer. 8.A) What is the size of the program counter in this computer? 8.B) What is the minimum size of an ADD instruction that adds two registers and places the result in a third register (i.e. ADD R2, R1, RO). 8.C) What is the minimum size of an OR instruction between a register and a memory location (i.e. OR R2, M). 8.D) Draw the components of this computer showing the sizes in bits for the memory address, memory locations and registers. Q9) Using the instruction of a simple computer, write the code for a program that performs the following operation: BA +5 Note that the number 5 is already stored in registero (i.e. RO), whereas, A and B are memory locations 1E and 1F respectively. Show your calculations

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!