Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show all work! This problem considers instruction set architectures for three architecture styl accumulator architecture, a stack architecture, and a two-address load-store architecture. (You

image text in transcribedPlease show all work!
This problem considers instruction set architectures for three architecture styl accumulator architecture, a stack architecture, and a two-address load-store architecture. (You can find more information about these architectures in Appendix A, Section A.2 of the text. Note that the MIPS is a three-address load-store architecture, yet another style.) Make the following assumptions about all three instruction set architectures: 3. es, an . The opcode is always one byte. . All memory addresses are two bytes All data operands are two bytes. Each architecture uses a fixed length instruction set is fixed length (every instruction used by the architecture has the same integer number of bytes). . An accumulator architecture is simple, but still used on many microcontrollers. They accumulator as one of its two inputs, and puts its result back into the accumulator. have a special working register called the accumulator; every math operation uses the Suppose that the accumulator architecture has the following assembly language instructions: LOAD Copies the data from the accumulator, writing it to memory the accumulator. at the given address. Reads the memory at the given address, adds the data read to the data in the accumulator, and writes the result in the accumulator ADD (a) How many bytes in an instruction are needed for the accumulator architecture? Support your answer by showing the fields needed in the widest instruction. (b) Write assembly language code for the high-level code fragrment C = A+B+C+D on the accumulator architecture. Try to be efficient

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_2

Step: 3

blur-text-image_3

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