Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

13-6 How will MIS help my career?

Answered: 1 week ago