Question: A certain microprocessor has a simple instruction set shown below. INSTRUCTION SET Op-code ---------- Explanation 76 ------------------ Halt the microprocessor. C6* ---------------- Add next byte

A certain microprocessor has a simple instruction set shown below.

INSTRUCTION SET

Op-code ---------- Explanation 76 ------------------ Halt the microprocessor. C6* ---------------- Add next byte to accumulator. D6* ---------------- Subract next byte from accumulator. 3C ----------------- Increment the accumulator. 3D ----------------- Decrement the accumulator. 3E* ---------------- Move the next byte into the accumulator.

*These instructions use two bytes.

What number would be in the accumulator after the program shown below was run?

PROGRAM

Address ---------- Op-code

001 ---------------- 3E

002 ---------------- 05

003 ---------------- D6

004 ---------------- 02

005 ---------------- 3C

006 ---------------- 76

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!