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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started