Question: Thx 2. This question is meant to reinforce how a CPU executes program code. We will consider a hypothetical assembly language with only the instructions

Thx
 Thx 2. This question is meant to reinforce how a CPU
executes program code. We will consider a hypothetical assembly language with only

2. This question is meant to reinforce how a CPU executes program code. We will consider a hypothetical assembly language with only the instructions in Table L, and 10 registers referred to by SrO, .. sr10 instruction meaning example add SrO, Sr1, Sr2 sub $rO, $r1, $r2 mul SrO, Sr1, Sr2 mul SrO, Sr1, 4 addi SrO, St1, 5 addi SrO, St1, 5 mov Sro, St1 add reg1, reg2 reg3 | regl reg2 + reg3 sub reg1, reg2 reg3 | regl reg2-reg3 mul reg1, reg2 reg3 | regi = reg2 * reg3 muli regi, reg2 x I addi regl, reg2, x reg1 reg2 z, where x is some integer subi regl, reg2, x regl - reg2- z, where x is some integer label: mov regi, reg2 name: type, value create type variable in RAM where name - value lw reg, RAM source move word from RAM to a register sw reg, RAMsource move word from register to RANM la reg, RAM source move address of RAM to a register sa reg, RAM.source move address in register to RAM b label beq reg1,reg2,label | jump to label if regi = reg2 blt regl,reg2,label jump to label if regl

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!