Question

ASSEMBLY LANGUAGE. For each problem, show the contents or setting of the requested item after executing...

ASSEMBLY LANGUAGE. For each problem, show the contents or setting of the requested item after executing the instructions.

1.

mov eax,0

mov al,5

mov bl,11

mul bl

- Show the hexadecimal digits in eax:

- Show the carry flag value:   

- Show the overflow flag value:     

mov eax,0

mov edx,0

mov ax,5h

mov bx,20h

mul bx

- Show the hexadecimal digits in eax:

- Show the hexadecimal digits in edx:

- Show the carry flag value:

- Show the overflow flag value:  

    mov eax,12345h

    mov edx,0

    mov ax,5h

    mov ebx,10000h

    mul ebx

    - Show the hexadecimal digits in eax:

    - Show the hexadecimal digits in edx:

    - Show the carry flag value:   

    - Show the overflow flag value:     

    0 0
    Add a comment Improve this question Transcribed image text
    Answer #1

    Answer is in two pages:

    page 1

    Page 2

    -------------------------------------------------------------------

    Add a comment
    Know the answer?
    Add Answer to:
    ASSEMBLY LANGUAGE. For each problem, show the contents or setting of the requested item after executing...
    Your Answer:

    Post as a guest

    Your Name:

    What's your source?

    Earn Coins

    Coins can be redeemed for fabulous gifts.

    Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
    Similar Homework Help Questions
    • This is Assembly Language. For each problem, show the contents or setting of the requested items...

      This is Assembly Language. For each problem, show the contents or setting of the requested items after executing the instructions. mov eax, 403h       ; i.e., 1027 mov ebx, -16        ; i.e., FFFFFFF0h mov edx, 0 idiv bl Show the hexadecimal digits in eax:_______________ Show the hexadecimal digits in edx:_______________ mov eax, 403h       ; i.e., 1027 mov ebx, -16        ; i.e., FFFFFFF0h mov edx, 0 cwd idiv bx Show the hexadecimal digits in eax:_______________ Show the hexadecimal digits in edx:_______________ mov...

    • Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF...

      Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1.    Give the new contents of AL after each of the following instructions is executed.    Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH.    Show the contents of BX and CX after...

    • Assembly language: Before executing the following code, the value in eax was 1 What will be...

      Assembly language: Before executing the following code, the value in eax was 1 What will be the value in eax after executing the following code: mov ebx, eax shl eax, 4 shl ebx, 3 add eax, ebx

    • X86 Assembly Language Help to implement the CipherChar Procedure at the end of the given code...

      X86 Assembly Language Help to implement the CipherChar Procedure at the end of the given code INCLUDE Irvine32.inc         .data       KeyPrompt BYTE "Enter the passphrase: ",0       TextPrompt BYTE "Enter the plaintest: ",0           str1 BYTE "The passphrase has length:",0           str2 BYTE "The plaintest has length:",0       KeyIs BYTE "The passphrase: ",0       PlainTextIs BYTE "The plaintext: ",0       CipherTextIs BYTE "The ciphertext: ",0       KMAX = 64                        ; passphrase buffer maximum size       BMAX = 128                       ; test...

    • 27. For lO computer interface function outb(0xB6, 0x43), which register to hold Ox43? (a) AL (c) DX (d) AX (b) BL 28. Suppose memory variable j is 32-bit. After executing the following instructio...

      27. For lO computer interface function outb(0xB6, 0x43), which register to hold Ox43? (a) AL (c) DX (d) AX (b) BL 28. Suppose memory variable j is 32-bit. After executing the following instructions int j 0X20AB int *Ptr asmi MOV EAX, Ptr; MOV EBX, [EAX] ADD EBX, 1; Which of the following statements is true? (b) EBX hold 0x20AC in hexadecimal (d) EAX hold 0x20AC in hexadecimal (a) EBX hold 0x20AB in hexadecimal (c) EAX hold Ox20AB in hexadecimal 29....

    • Assembly Language NASM create a substring ASSIGNMENT INSTRUCTIONS: Create the Substring from the Given string, beginIndex...

      Assembly Language NASM create a substring ASSIGNMENT INSTRUCTIONS: Create the Substring from the Given string, beginIndex and endIndex The program should create a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex – 1. Thus the length of the substring is endIndex-beginIndex. In other words you can say that beginIndex is inclusive and endIndex is exclusive while getting the substring. Initialize the following values in...

    • 37. What is the binary value of AL after the following instructions have mov al,01101011b stc...

      37. What is the binary value of AL after the following instructions have mov al,01101011b stc rcl al,2 38. What is the binary value of AX after the following instructions have executed? mov ax, 0000000010011101b mov bx, 1010101010000000b shld ax, bx,1 39. What is the binary value of AX after the following instructions have executed? mov ax, 0000000010011101b mov bx, 1010101010001011b shrd ax, bx, 2 will be the hexadecimal values of DX and AX after the following instructions have executed?...

    • 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that...

      1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx ) - (eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax = 0x15DBCB19. At the end of your code ecx = 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5. Write one line of code in...

    • 5. Assume DS-1000, CS- 800, Ax-3412H, and BX-0200H. For the following x86 assembly code: MOV [BX...

      5. Assume DS-1000, CS- 800, Ax-3412H, and BX-0200H. For the following x86 assembly code: MOV [BX +1000H], AX a) Translate the assembly code to machine code (in Hex). The opcode of MOV instruction is 100010. b) Show the values of AX, BX, and new values in memory, if there are, in the following figure c) (10 points) AFTER executing the instruction. (5 points) What is the memory address accessed by the instruction, assuming real mode operation? Show it in the...

    • 1. What will be the contents of BX after the following instructions execute? mov bx,5 stc...

      1. What will be the contents of BX after the following instructions execute? mov bx,5 stc mov ax,60h adc bx,ax 2. Describe the output when the following code executes in 64-bit mode: .data dividend_hi QWORD 00000108h dividend_lo QWORD 33300020h divisor QWORD 00000100h .code mov rdx,dividend_hi mov rax,dividend_lo div divisor 3. The following program is supposed to subtract val2 from val1. Find and correct all logic errors (CLC clears the Carry flag): .data val1 QWORD 20403004362047A1h val2 QWORD 055210304A2630B2h result QWORD...

    ADVERTISEMENT
    Free Homework Help App
    Download From Google Play
    Scan Your Homework
    to Get Instant Free Answers
    Need Online Homework Help?
    Ask a Question
    Get Answers For Free
    Most questions answered within 3 hours.
    ADVERTISEMENT
    ADVERTISEMENT
    ADVERTISEMENT