Question: Given the following Super Simple CPU program: table [ [ , LDI 6 , ; Load 6 into accumulator ] , [ , SUB

Given the following "Super Simple CPU" program:
\table[[,LDI 6,; Load 6 into accumulator],[,SUB ONE,; Subtract the value in memory location ONE from],[,,accumulator],[ADD TWO,; Add the value in memory location TWO to accumulator,],[DONE STO ONE,; Store accumulator in memory location ONE,],[,STP,; Stop the program],[ONE,DAT 1,; A data value, the constant 1],[TWO,DAT 2,; A data value, the constant 2]]
a.[4] 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.
 Given the following "Super Simple CPU" program: \table[[,LDI 6,; Load 6

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!