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 Register

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 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. 1. 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 Accumulator | # 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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago