Question: Given the following Super Simple CPU program: table [ [ , LDI 6 , ; Load 6 into accumulator ] , [ , SUB
Given the following "Super Simple CPU" program:
tableLDI ; Load into accumulatorSUB ONE,; Subtract the value in memory location ONE fromaccumulatorADD TWO,; Add the value in memory location TWO to accumulator,DONE STO ONE,; Store accumulator in memory location ONE,STP; Stop the programONEDAT ; A data value, the constant TWODAT ; A data value, the constant
a Trace the code, write the values of Accumulator, Memory ONE and Memory TWO in a table sample table is shown below and record their changes after each instruction. Write a pseudocode thay performs rhe same program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
