Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Register (register-memory) Load R1,A Add R3,R1,B Store R3 , C Stack Push A Push B Add Pop C Accumulator Load A Add B Store C

image text in transcribed

Register (register-memory) Load R1,A Add R3,R1,B Store R3 , C Stack Push A Push B Add Pop C Accumulator Load A Add B Store C Register (load-store) Load R1,A Load R2 , B Add R3, R1, R2 Store R3 , C Figure A.2 The code sequence for C = A + B for four classes of instruction sets. Note that the Add instruction has implicit operands for stack and accumulator architectures and explicit operands for register architectures. It is assumed that A, B, and C all belong in memory and that the values of A and B cannot be destroyed. Figure A.1 shows the Add operation for each class of architecture. Q1. For the following assume that values A, B, C and D reside in memory. Also assume that instruction operation codes are represented in 8 bits, memory addresses are 64 bits, and register addresses are 6 bits. For each instruction set architecture shown in Figure A.2 (of the textbook), how many addresses, or names, appear in each instruction for the code to compute following instructions and what is the total code size? (Please fill in the blanks in the following tables with your answers, add additional rows to tables if necessary) C- B+D- A Stack # of addresses in the instruction Code size Total code size: ? bits

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

=+What is the nature of the unions in the particular country?

Answered: 1 week ago