Greetings!!
i) MOV ECX,ES:[BX][SI]-7
This instruction will calculate the physical address as follows:
Physical address=Shifted content of ES+Content of BX+Content of SI-7
=30020+099F+4000-7
=349B8H[Please note that the segment register is shifted 4 position left ie 3002 become 30020]
4 bytes from this address is copied into ECX register as follows:55667788H. Here little endian scheme is used to retrieve the data. ie lower address data will move to lower part of the register and so on. Here 88 is stored in the lower address and that is copied into the lower part of the register, then the next byte and so on. Finally 55 is at the higher address and that is copied into the higher part of the register ECX.
ii) MUL BYTE PTR[202H]
This instruction will calculate the physical address as follows:
Physical address=Shifted content of DS+Immediate offset
=30010+202
=30212H
One byte of data from the address 32012 is read and multiply with the content of AX and store the result back to the AX register. Answer is 108C44H and lower 16 bit of the answer 8C44 will be in regisgter AX and the remaining will be stored automatically into register DX. ie DX=0010
Hope this helps
Thank You
ECE3166 ADVANCED MICROPROCESSORS JUNE 2020 Question 2 (a) State the addressing mode and physical address of...