Question: Consider the following E 1 5 assembly program. ? ? * OPCODE S R C D S T IMMDATA * myROM [ 0 ] =

Consider the following E15 assembly program.
??* OPCODE SRCDST IMMDATA*
myROM[0]={jmp,Rxx,Rxx,4'b0010};
myROM[1]={jmp,Rxx,Rxx,4'b0000};
myROM [2]={movi,Rxx,Rg0,4'b1111};
myROM[3]={cm,Rxx,Rg0,4'b0000};
myROM[4]={jz,Rxx,Rxx,4'b1101};
myROM [5]={movi,RXX,Rg1,4'b1111};
myROM [6]={cm,Rxx,Rg1,4'b0000};
myROM[7]={jz,Rxx,Rxx,4'b0011};
myROM [8]={subi,RXX,Rg1,4'b0001};
myROM[9]={jmp,Rxx,Rxx,4'b1101};
myROM[10]={subi,Rxx,Rg0,4'b0001};
myROM[11]={jmp,Rxx,Rxx,4'b1000};
myROM[12]={jmp,Rxx,Rxx,4'b0000};
myROM[13]={jmp,Rxx,Rxx,4'b0000};
myROM[14]={jmp,Rxx,Rxx,4'b0000};
myROM[15]={jmp,Rxx,Rxx,4'b0000};
(a) When this program is run, how many times will the instruction in ROM cell 8 be executed?
Explain.
(b) How many times will the instruction in ROM cell 10 be executed? Explain.
(c) How many times will the instruction in ROM cell 12 be executed? Explain.
(d) How many times will the instruction in ROM cell 1 be executed? Explain.
(e) Your friend Rupert, who knows nothing about programming, wants to know what this program
does. Give them a high-level desription of what it does.
Consider the following E 1 5 assembly program. ?

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 Programming Questions!