Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The value of the register DX after the following code runs – Val WORD 100h- is M

ID: 3692555 • Letter: T

Question

The value of the register DX after the following code runs – Val WORD 100h- is

MOV AX, 4000H

MUL Val

4000h

0400h

0040h

0004h

The value of the register AH after the following code runs is

MOV AX, 45H

MOV BL, 2h

DIV BL

01h

12h

22h

43h

The values of the registers AX and DX respectively after the following code runs – Val WORD 100h- are

MOV AX, 2500h

MOV DX, 1000h

MUL Val

0000h; 0025h

1000h; 2500h

3000h; 1025h

3500h; 1000h

The value of the register DX after the following code runs   is

MOV DX, 0

MOV AX, 8003h

MOV CX, 100h

DIV CX

0001h

0080h

0003h

0083h

Write a program using only shifting to multiply the content of register AX by 7 –assuming that the number in AX is so small that the product will fit in AX - overflow won’t occur.

Explanation / Answer

VAL WORD 2211h

MOV AX VAL

SHL   AX

SHL AX

MOV   BX,AX

SUB   VAL

ADD   BX