A certain microprocessor has a simple instruction set shown below. INSTRUCTION S
ID: 3670942 • Letter: A
Question
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
Explanation / Answer
((05 - 02)++) = 04 will be in the accumulator
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.