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).
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started