Question: 1. Consider a load-store type machine with the following specifications: 2 32 x bytes of memory 32-bit fixed format instructions 32 32-bit general purpose registers

1. Consider a load-store type machine with the following specifications:

  • 232 x bytes of memory
  • 32-bit fixed format instructions
  • 32 32-bit general purpose registers (GPR)
  • 3-address register-to-register arithmetic instructions
  • Single address mode for load/store: base + displacement
  • Capable of performing a total of 32 arithmetic operations

For simplicity assume that the machine only performs arithmetic operations plus data transfer operations (i.e. load and store).

  1. Write the equivalent machine level language corresponding to a C statement of C = A + B

b) Give an instruction format for the arithmetic operations. To do this draw a diagram of the instruction format with each field clearly specified.

For each field indicate its size, the reason for selected size, and a description of what purpose the field serves.

c) Give an instruction format for the load/store operations. To do this draw a diagram of the instruction format with each field clearly specified. For each field indicate its size, the reason for selected size, and a description of what purpose the field serves.

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!