Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1: Total Points (20) Consider the following four different styles of instruction set architectures 1. Accumulator-All operations occur between a single register and a
Question 1: Total Points (20) Consider the following four different styles of instruction set architectures 1. Accumulator-All operations occur between a single register and a memory location. 2-Memory-memory-All instruction addresses reference only memory locations. 3. Stack-All operations occur on top of the stack. Push and pop are the only instructions that access memory; all others remove their operands from the stack and replace them with the result. The implementation uses a hardwired stack for only the top two stack entries, which keeps the processor circuit very small and low cost. Additional stack positions are kept in memory locations, and accesses to these stack positions require memory references. 4. Load-store-All operations occur in registers, and register-to-register instructions have three register names per instruction. Invent your own assembly language mnemonics (Following Figure provides a useful sample to generalize), and for each architecture, write the best equivalent assembly language code for this high-level language code sequence: A=B+C; B-A+ C; D=A-B: [Assumption: The variables A, B, C and D are initially in memory] Stack Push A Push B Add Pop C Figure Accumulator Load A Add B Store C Register (register-memory) Load R1,A Add R3,R1,B Store R3,C Register (load-store) Load R1,A Load R2,B Add R3.R1,R2 Store R3.C The code sequence for C = A + B for four classes of instruction sets
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