Give the microcode program (control signals) for a new direct-mode instruction t
ID: 2293261 • Letter: G
Question
Give the microcode program (control signals) for a new direct-mode instruction that adds the numeric contents of the accumulator to a location of memory. At the end of the instruction's execution, the accumulator should be the same as it was at the beginning, but the memory location will be increased by the value of the accumulator. The direct-mode ADDA instruction might be described with the formula A A Mem [OprndSpec]. Using the same notation, your new instruction (ADDM?) would be described with the formula Mem [OprndSpec] = Mem [OprndSpec] + AExplanation / Answer
MVI C, 10 //Let we add 10 numbers
LDA 5000
LOOP: ADD 5200, A, 5002
JNZ LOOP
DCR C
HLT
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.