Question

1. How many bits are moved in the instruction as shown below? mov     al,        bl...

1. How many bits are moved in the instruction as shown below?

mov     al,        bl

2.

how many bits are moved in the instruction as shown below?

mov     ax,       bx

3.

How many bits are moved in the instruction as shown below?

mov eax, ebx

4.

How many bits are moved in the instruction as shown below?

mov     r8,        r9

5.How do you reference r9 as 8 bits?

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

1) mov al, bl

8-bits are moved because al, bl are referencing lower 8-bits of eax, ebx.

2) mov ax, bx

16-bits are moved because ax, bx are referencing lower 16-bits of eax, ebx.

3) mov eax, ebx

32-bits are moved because eax, ebx are 32-bit registers.

4) mov r8, r9

32-bits are moved because r8, r9 are 32-bit registers.

5) To refer r9 as 8-bits which is a 32-bit register we use following:

   r9b

Here b represent the byte which is 8-bits

Add a comment
Know the answer?
Add Answer to:
1. How many bits are moved in the instruction as shown below? mov     al,        bl...
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
  • b) 4 bits c) 12 bits ) 16 bits 12) mov al, 0101b; mov bl, 1100b;...

    b) 4 bits c) 12 bits ) 16 bits 12) mov al, 0101b; mov bl, 1100b; and al, bl; What will AL be equal to after this code runs? b) 0xF3 c) 0x3F d) 0xF5 13) mov al, 0110b; mov bl, 1011b; or al, bl, xchg al, bl; neg al, What will AL and BL be equal to after this code runs? c) AL = 0xF3, BL = 0x1B 14) mov edx, 5 cmp edx, 10 ige L1, je L2...

  • ) Identify the hexadecimal value moved to the destination by each of the following instruction below...

    ) Identify the hexadecimal value moved to the destination by each of the following instruction below based on the given data declaration. Assume that the offset of byteVal is 00000000H data byteVal wordVal dwordVal aString BYTE 1,2,3,4 WORD 1000H,2000H,3000H,4000H DWORD 12345678H,34567890H BYTE "ABCDEFG",0 ax,offset byteVal i. mov dx,wordVal i. mov al,aString+2 i11. mov dx,wordVal+4 iv. mov mov eax,offset byteVal+2 V. CO2 (10 marks) d) The incomplete program below used to find the multiplication product of the given numbers by 4...

  • 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...

  • The result of the instructions: mov ax,e275                       and ax, 0a79dh 4aa2 4ba2 Aa42 none of them...

    The result of the instructions: mov ax,e275                       and ax, 0a79dh 4aa2 4ba2 Aa42 none of them The correct way to put the address of the first element in a register lea loop for none of them To make only bit 2 of bx zero without changing any other bits we use and bx, 0fff0h and bx, 0fff4 and bx, 0fff4h none of them Suppose you want to calculate ebx mod 8 and ebx, 0fffffff0h and ebx, 00000007h and ebx, 00000008h...

  • 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...

  • 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...

  • Assuming that register EBX has an address of 0x20000000 and register ESI has the value of...

    Assuming that register EBX has an address of 0x20000000 and register ESI has the value of “8,” what does the following instruction do? Describe what happens to each register and/or memory location (provide the address(es) and value(s)). Also, how many bits are moved by this move instruction? MOV [EBX+ESI], AX

  • 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....

  • Use the following data declarations. Assume that the offset of byteVal is 00000000: data byteValsbyte 1,2,3,ffh...

    Use the following data declarations. Assume that the offset of byteVal is 00000000: data byteValsbyte 1,2,3,ffh dwordVal dword 34567890h, 90785634h, 12346745h Show the value of the final destination operand after each of the following code fragments has executed:(If any instruction/s is invalid, indicate "INV" as the answer and briefly explain why) a.mov edi, 2 answer al mov al, (byte Val + edi) b.mov ebx, dwordVal+4 answer ebx - [esi).- (show your answer in liteedim mov esi, offset dwordVal+8 xchg ebx,...

  • EEE 3423 - MICROPROCESSOR & MICROCOMPUTERS Sem I, 2019/2020 TUTORIAL #2: Week 05 - Week 08...

    EEE 3423 - MICROPROCESSOR & MICROCOMPUTERS Sem I, 2019/2020 TUTORIAL #2: Week 05 - Week 08 Answer all questions. [CO1-P011 1. Assuming that the instructions below are being executed in sequence from line 1 to 6. MOV AL, 010101010 MOV AH, AL AND AL, 00011111B OR AH, 11000000B XOR AL, 00001111B (62 NOT AH Descnbe the result of executing the following sequence of instructions from line 1 to 6 respectively but in HEX number system. Then, please provide the final...

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
Active Questions
ADVERTISEMENT