Menu

[Solved]Question 1 Instruction Xor Ax Bx Si 01 Assume Values Prior Execution Cs 13a7h Ds 32c5h Ip Q37085756

Question 1: For the instruction XOR AX,[BX][SI]+ 01       

Assume values prior to execution, CS = 13A7H; DS=32C5H;IP=0105H; SI=06C2H;

BX = 415BH; AX = ABCDH;

Memory contents (in Hex) are given below for select physicaladdresses:

(3735E) =A4             (3735F) =C6                         

(3736E) =B5             (3736F) = F3

(3745E) =B9             (3745F) = E6

(3746E) =8E             (3746F) = C9

(1718E) =6B             (1718F) = 3A

(1728E) =7A             (1728F) = CD

  1. How many Bytes are being accessed from the main memory for XORoperation for the instruction above? Calculate physical address ofeach Byte coming from the main memory for this instruction.

(Note: If your address computationdoesn’t match any of the memory addresses above then consider thelow address bytes to be 12H and high address byte to be 34H (toproceed with the next question below).

  1. Calculate the final value of AX (in binary and in hex) afterexecution of XOR instruction given above. Show your work, andCircle your final answer.

Expert Answer


Answer to Question 1: For the instruction XOR AX, [BX][SI]+ 01 Assume values prior to execution, CS = 13A7H; DS=32C5H; IP=0105H; S… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *