solution

MUL & DIV instruction in Assembly Language

Table 1

EAX

EBX

ECX

EDX

10H

20H

2H

0H

Refer to Table 1 above for the following tasks.
Write your own code in Visual Studio 2019 to execute the instruction, then fill in the blanks with the correct value of the registers. Also, note the changes.

**Note: Always start with the initial value of the registers given in Table 1 above for each question (a-f) This means you have to execute only one instruction per debugging session e.g. execute MUL BX and then debug and get the values of the registers and then stop. Then start again with MUL CX.

Answer all questions in 32bit format XXXX XXXX e.g. 0000 1000 with only one white space in between

a. MUL BX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

b. MUL CX

EAX

EBX

ECX

EDX

c. MUL AX

EAX

EBX

ECX

EDX

d. DIV BX

EAX

EBX

ECX

EDX

e. DIV CX

EAX

EBX

ECX

EDX

f. DIV AX

EAX

EBX

ECX

EDX

Refer to Table 1 above for the following tasks.

Write your own code in Visual Studio 2019 to execute the instruction below, then fill in the blanks with the correct value of the registers. Also, note the changes.

**Note: Always start with the initial value of the registers given in Table 1 above for each question (a-f) This means you have to execute only one instruction per debugging session e.g. execute MUL BX and then debug and get the values of the registers and then stop. Then start again with MUL CX.

Answer all questions in 32bit format XXXX XXXX e.g. 0000 1000 with only one white space in between

a. MUL EBX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

b. MUL ECX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

c. MUL EAX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

d. DIV EBX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

e. DIV ECX

EAX

EBX

ECX

EDX

Answer

Answer

Answer

Answer

f. DIV EAX

EAX

EBX

ECX

EDX

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!