Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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] + A

Explanation / Answer

   MVI    C, 10     //Let we add 10 numbers
        LDA    5000     
       LOOP: ADD 5200, A, 5002
        JNZ LOOP      
        DCR    C         
        HLT            

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote