Question

1. What is wrong with the command           movb $0x3A2C, %bx a) Neither 3A2C nor bx...

1. What is wrong with the command

          movb $0x3A2C, %bx

a) Neither 3A2C nor bx should be used with byte instructions.

b) The dollar sign can't be used with a hex constant.

c) bx is too small to hold 3A2C and should be changed to ebx.

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

Q1. What is wrong with the command

          movb $0x3A2C, %bx

a) Neither 3A2C nor bx should be used with byte instructions.

b) The dollar sign can't be used with a hex constant.

c) bx is too small to hold 3A2C and should be changed to ebx.

Answer:--------

a) a) Neither 3A2C nor bx should be used with byte instructions.

Add a comment
Know the answer?
Add Answer to:
1. What is wrong with the command           movb $0x3A2C, %bx a) Neither 3A2C nor bx...
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
  • What is wrong with the command movw $0x43FF, %al The command should be movb because the...

    What is wrong with the command movw $0x43FF, %al The command should be movb because the al register holds a byte. Hex constants can't be used with dollar signs. al is not big enough to hold 43FF.

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

  • Consider the language ins, for example, the words 1, 11 and 11111111, but neither 111 nor...

    Consider the language ins, for example, the words 1, 11 and 11111111, but neither 111 nor 1111111111 1. Prove that L is not context-free. 2. Draw a standard Turing machine with a two-way tape that decides L, using only ?-(L B} as tape alphabet. Very briefly explain how your machine works For every state or group of related states, your explanation should say in a few words (e.g. move back to start of tape" or "replace every blank by 1")...

  • Assume an integer is represented on 1 byte. What is the problem with adding the following...

    Assume an integer is represented on 1 byte. What is the problem with adding the following two binary numbers? 0111 1111+ 0100 0001 -------------- 1100 0000 A. There is nothing wrong B. The answer is correct; it should be 0100 00100 C. The answer is incorrect; it should be 0110 0000 D. The sum of the two numbers is to big to be represented only one byte.

  • Please make sure your answer is correct. I have gotten numerous wrong answers. Thanks. This one...

    Please make sure your answer is correct. I have gotten numerous wrong answers. Thanks. This one too: And this one: Again please make sure you are correct. If you have time: This one was marked wrong too, so if you can solve I give thumbs up thanks. Consider the following reaction mechanism: Step 1 K 2A + B =D (fast equilibrium) Step 2 D+B *3 E+F (slow) Step 3 FKG (fast) c. What is the rate law that corresponds to...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of...

    Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of 80386 microprocessor. (2 marks) b) What are the pairs of registers in 80386 microprocessors used to hold the address of instructions in memory? (2 marks) c) What is the output of instruction: ADD AX, (BX+DI] ? (2 marks) d) Give the name of valid registers pairs used to hold the base and offset address of stack operation in 80386 (2 marks) e) Express C17B000016...

  • In the circuit shown in the figure (Figure 1), the switch has been open for a long time and is suddenly closed. Neither the battery nor the inductors have any appreciable resistance.

     In the circuit shown in the figure (Figure 1), the switch has been open for a long time and is suddenly closed. Neither the battery nor the inductors have any appreciable resistance. Part A What do the ammeter read just after S is closed? Part B What do the voltmeter read just after S is closed? Part C What do the ammeter read after S has been closed a very long time? Part D What do the voltmeter read after S has been closed a very long time? Part...

  • #1. What is the value (in hex) of%ol after each set of instructions Which of the following logic ...

    Please answer the following questions and explain what they are doing. Thanks! #1. What is the value (in hex) of%ol after each set of instructions Which of the following logic gate symbols represents set 0x89ABCDEF, %01 set 0x12345678, o2 xor %o1, %o2, %01 XNOR Value in %01 at this point is 0x -NOR NAND XOr b) set 0x89ABCDEF, 801 set 0x12345678, %02 and %01, %o2, %o1 Value in 9601 at this point is 0x set 0x89ABCDEF, o1 sra %01, 20,801...

  • 1) Suppose that the function v in the Product Rule has a constant value c. What...

    1) Suppose that the function v in the Product Rule has a constant value c. What does the product rule then say? What does this say about the constant multiple rule? 2) Graph y = tanx and its derivative on (-1/2, T/2). Does the graph of the tangent function appear to have a smallest slope? A largest slope? Is the slope ever negative? Give reasons for your answers. 3) Explain why the following statements are true or false. a) If...

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