5-13. Assume that the first six memory-reference instructions in the basic com- puter listed in Table 5-4 are to be chan
Posted: Tue Jul 12, 2022 8:11 am
5-13. Assume that the first six memory-reference instructions in the basic com- puter listed in Table 5-4 are to be changed to the instructions specified in the following table. EA is the effective address that resides in AR during time T₁. Assume that the adder and logic circuit in Fig. 5-4 can perform the exclusive-OR operation AC AC DR. Assume further that the adder and logic circuit cannot perform subtraction directly. The subtraction must be done using the 2's complement of the subtrahend by complementing and incrementing AC. Give the sequence of register transfer statements needed to execute each of the listed instructions starting from timing T4. Note that the value in AC should not change unless the instruction specifies a change in its content. You can use TR to store the content of AC temporary or you can exchange DR and AC. Symbol Opcode Symbolic designation XOR ADM 000 AC ACOM[EA] 001 M[EA] M[EA] + AC 010 AC ACM[EA] 011 100 SUB XCH SEQ BPA 101 AC M[EA], M[EA] AC If (M[EA] = AC) then (PC PC + 1) If (AC > 0) then (PC+EA) Description in words Exclusive-OR to AC Add AC to memory Subtract memory from AC Exchange AC and memory Skip on equal Branch if AC positive and non-zero