Question: 2. Consider the following super CPU program and given that 2 is the input. Trace the code and determine what the values in Accumulator, PC,


2. Consider the following super CPU program and given that 2 is the input. Trace the code and determine what the values in Accumulator, PC, Mem [14] (memory location 14) and Mem[15] will be after the program has executed (show the intermediate values too). LDI 3 STO p INP STO N TOP JZR BYE LOD p ADD p STO p LOD N SUB ONE STO N JMP TOP BYE STP ONE DAT 1 N DAT p DAT
6. Consider the following logic circuit, with inputs A, B and C and outputs X, Y and Z. D c Y Z D' Complete the truth table below to show exactly how this circuit operates. B 1 2 3 X Y Z 0 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 0 1 1 1 a) Write the Boolean expressions for 1, 2, and 3 intermediate results and X, Y, Z outputs. 1 1 0 1 1 1 a) Write the Boolean expressions for 1, 2, and 3 intermediate results and X, Y, Z outputs. b) Fill in the corresponding column with each intermediate result and the final output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
