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

4. Consider the following Hypothetical Computer 15 0 3 4 Address Opcode Instruct

ID: 3665987 • Letter: 4

Question

4. Consider the following Hypothetical Computer 15 0 3 4 Address Opcode Instruction Format 15 LSB(0) MSB(15) Integer Format Magnitude Address Contents 7D0I 7D15 001 002 7D22 003 8DO3 004 7D25 005 SD17 7DO 0002 0004 FFF9 7D4BEEF 000B 7D1 7D2 7D3 0000 SDO 8D1 Partial Memory Map Internal CPU Registers: PC, IR, AC, MAR, MBR Partial list of opcodes: 0001 = Load AC from memory 0010 = Store AC to memory 0101 Add to AC from memory 0011=Load AC from 10 0111 Store AC to /o Using the above organization and partial memory opcodes do the following: 1. Interpret the above machine code in memory to a series of pseudo assembly instructions Follow the instruction fetch and execute cycle as discussed in the class for Load AC from memory for the above computer 2.

Explanation / Answer

Question 1:

Answer : Instruction t Assembly Language.

Pseudo Assembly Instructions

MOV TOTAL, 48    ; Transfer the value 48 in the

                                    ; Memory variable TOTAL

                                                           

ADD AH, BH       ; Add the content of the

                                    ; BH register into the AH register

                                                           

AND MASK1, 128   ; Perform AND operation on the

                                    ; Variable MASK1 and 128

                                                           

ADD MARKS, 103   ; Add 103 to the variable MARKS

MOV AL, 108       ; Transfer the value 108 to the AL register

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