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

Assembly language 3. What will be the hexadecimal value of the destination opera

ID: 3665184 • Letter: A

Question

Assembly language

3. What will be the hexadecimal value of the destination operand after each of the following statements has executed? If any instruction is illegal, write the word ILLEGAL as the answer. var1, var2 and count are 16 bit variables. All the numbers are in hexadecimal After Before Instruction mov ahab AX-1A5, BX-4F5B AX mov offset Var2,03h Var2 9876 Var2 DX-8F1A, count-004C DX- mov dl,count, mov dx,34h EDX EDX-8CE155AA EDI mov edi,0A0000000h EDI 06E948CD DX mov dx.cx DX-A000, CX-B800 mov bluax. BL- BX-004C, AX-4000 var -0025, BX-A000 VartE mov var1,bx mov var1,var2 var1-0501, var 2-4050 var mov, var ebx var1 1225, EBX-8899 var

Explanation / Answer

instruction                 before                               After

mov ah,bl       AX=1A5,BX=4F5B                AX=5BA5   (lower byte of B to higherbyte of A)

mov offset Var2,03h        var2=9876                                     var2=03h

mov dl,count            DX=8F1A,count=004C            DX=8F4Ch( lower byte of count to lower byte of dX

mov dx,34h                                       EDx=8CE155AA                              EDX=00000034H

mov edi,0A0000000h    EDI=06E948CD EDI=    A0000000H

mov dx,cx                                        DX=A000,CX=B800                          DX=B800h

mov bl,ax                                        BX=004C,AX=4000                      BL=0000h

mov var1,bx                                  var1=0025,bX=A000               var1=A000h

mov var1,var2                             var1=0501h , var2=4050              var1=4050h

mov var1,[ebx]                     var1=1225, EBX=8899                 var1=00008899h