Question

3. How do you account for the difference obtained in previous question? 4. Why should AX be used not AL?

In assembly language.

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

4)

AX is of 16 bit register and AH and AL are of 8- bits.

Reason is than AH and AL when you use at once for operation leads to some time overflow of bits this may lead to loss of data .Therefore to avoid such type of errors we use large bit AX or EAX .

Add a comment
Know the answer?
Add Answer to:
In assembly language. 3. How do you account for the difference obtained in previous question? 4....
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
  • Question: WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT ... WRITE A PROGRAM IN LC-3...

    Question: WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT ... WRITE A PROGRAM IN LC-3 ASSEMBLY LANGUAGE. DO NOT USE PYTHON, JAVA, C or C++ or OTHERS. Your task is to write a program that counts the number of 1 bits of the value stored at location given by Datal. Your program should print the count (in hexadecimal, as it is easier) along with an appropriate heading. Test your program with the following values stored in Datal: a xFFFE...

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

  • Please write in Assembly Language! Thank you. 4 The Sheraton Hotel in Irvine is a 16...

    Please write in Assembly Language! Thank you. 4 The Sheraton Hotel in Irvine is a 16 floor building. Suppose each bits of AX register represent one floor (the right most bit is representing the first floor). Ten people got into the elevator on the first floor and each pressed a random floor number between 2 and 16 (some random numbers may be the same which indicates more than one person will get off at the same floor). Write a program...

  • Need this done in AVR Assembly language: How do you generate a random number between 0...

    Need this done in AVR Assembly language: How do you generate a random number between 0 and 9 on assembly? I want to generate a random number and then print the result onto a 7 segment display. Is it possible to make a function to generate a random register?

  • Write MARIE assembly language programs that do the following: I. Write a program that inputs thre...

    Write MARIE assembly language programs that do the following: I. Write a program that inputs three integers, a, b, and c, in that order. It computes the following ia-bi-fc+ c The result should be written to output 2. Write a program that inputs integers, s. y, and z. It outputs the difference of the langest and first element entered. You may assume x. y, and z all have different values. So if 8, 12, and 9 are input, the output...

  • Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the...

    Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper. (5 marks) Explain the difference between eor and eors instruction. Use an example to show why both forms are useful. а. b. (5 marks) Explain using an example what the "Idr r3, [r7,#4]" instruction does. c. (10 marks) The following is the assembly language generated by a C compile type mystery, %function mystery: args 0, pretend = 0, frame =...

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

  • Please write in assembly language 8086 windows32 Question 3: Write an assembly program that has a...

    Please write in assembly language 8086 windows32 Question 3: Write an assembly program that has a macro maximum that finds the larger of two numbers inputted by the user

  • For an Arduino UNO in Assembly language: How do I read in a value from analog...

    For an Arduino UNO in Assembly language: How do I read in a value from analog pin A0 and output the result to pin 13 (pin 5 of Port B)? I need to kow how to this is done in assembly, please show a snippet of code

  • In this problem, you will write an assembly program (LC-3 assembly language) to process a string ...

    In this problem, you will write an assembly program (LC-3 assembly language) to process a string starting at memory location x5000, and is terminated by a ‘\0’ character (ASCII value = 0). For a given string beginning atmemory location x5000, convert all the upper-case English letters (A-Z) to lower-case, and all the lower case (a-z) to upper case. For example, if the string is “iLOVEComputerScience252”, the string after the processing should be: “IlovecOMPUTERsCIENCE252”. Store the string after the processing to...

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