Question: BOOK NAME: Assembly language and Computer Architecture using C++ and Java by Anthony J. Dos Reis Text book question > 6.22 A new machine is

BOOK NAME: Assembly language and Computer Architecture using C++ and Java by Anthony J. Dos Reis

Text book question > 6.22

A new machine is to have only the following five machine instructions:

st x mem[x] = ac; store accumulator register ld x ac = mem[x]; load accumulator register ldct x ct = mem[x]; load count register

decj x if ( -- ct != 0 ) pc = x; decrement and jump

addi x ac = ac + mem[x+ct-1]; add indexed

Write the microcode for this new machine. Run the following program on sim using your new microcode. ld zero ldct ten loop: addi array decj loop st sum dout halt sum: dw 0 zero: dw 0 ten: dw 10 array: dw 1 dw 2 dw 3 dw 5 dw 8 dw 13 dw 21 dw 34 dw 55

I am having a problem figuring out microcode for ldct, decj, and addi instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!