computer architecture
6) The state of 8088 CPU at certain time is given by the following figures. Using this figures obtain next instruction, machine code, and the value of AX, cx, and BX before and after CPU execution. Do they have same machine codes (figures 1 and 2)? Fig 1 RX 002 | -- DS 1104 ES-11114 1111:0 100 1100 CX 0720 DX 0000 SITTEE SAS 1184 CS_11114 IT0100 XOR AX, BX II! 0000 310000 NU TILLI'I. NNAR Before AX = ?, BX = ?, CX = ? Next instruction = ? Machine code = ? The location of next instruction = ? After AX = ?, BX = ?, CX = ? Machine code 2 The location of next instruction ? After AX = ?, BX = ?, CX = ? Fig 2 X 00 IX OW CX 077 DX 0000 SI FILE DS 1131 ES 11114 SS-11114 CS 1114 IT0300 1184: 0400 9109 XOR CX.BX DI GOOD NU UI ET IL NE NAHN Before AX = ?, BX = ?, CX = ? Next instruction = ? Machine code The location of next instruction = ? After AX = ?, BX = ?, cx = ? 2) Consider the operation of a machine with the data path of the following figure. Suppose that loading the ALU input registers takes m nsec, running the ALU takes 12 nsec, and storing the result back in the register scratchpad takes 5 nsec. If the maximum number of cycle per second in this machine is 50 MHz obtain the m value? ALU 6) The state of 8088 CPU at certain time is given by the following figures. Using this figures obtain next instruction, machine code, and the value of AX, cx, and BX before and after CPU execution. Do they have same machine codes (figures 1 and 2)? Fig 1 RX 002 | -- DS 1104 ES-11114 1111:0 100 1100 CX 0720 DX 0000 SITTEE SAS 1184 CS_11114 IT0100 XOR AX, BX II! 0000 310000 NU TILLI'I. NNAR Before AX = ?, BX = ?, CX = ? Next instruction = ? Machine code = ? The location of next instruction = ? After AX = ?, BX = ?, CX = ? Machine code 2 The location of next instruction ? After AX = ?, BX = ?, CX = ? Fig 2 X 00 IX OW CX 077 DX 0000 SI FILE DS 1131 ES 11114 SS-11114 CS 1114 IT0300 1184: 0400 9109 XOR CX.BX DI GOOD NU UI ET IL NE NAHN Before AX = ?, BX = ?, CX = ? Next instruction = ? Machine code The location of next instruction = ? After AX = ?, BX = ?, cx = ? 2) Consider the operation of a machine with the data path of the following figure. Suppose that loading the ALU input registers takes m nsec, running the ALU takes 12 nsec, and storing the result back in the register scratchpad takes 5 nsec. If the maximum number of cycle per second in this machine is 50 MHz obtain the m value? ALU