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

5. Write a single instruction using 16-bit operands that clears the high 8 bits

ID: 3873747 • Letter: 5

Question

5. Write a single instruction using 16-bit operands that clears the high 8 bits of AX and does not change the low 8 bits.

6. Write a single instruction using 16-bit operands that clears the low 8 bits of AX and does not change the high 8 bits.

7. Write a single instruction that converts an uppercase character in AL to lowercase, but does not change it if it is already lowercase. (Hint: look at the ASCII code table in binary)

8. Write a single instruction that converts an ASCII digit in AL to its corresponding binary value, but if it is already a binary value (0 to 9), doesn't change it.

Explanation / Answer

5)Answer:

and ax,00FFh

6)Answer:

or ax,0FF00h

7)Answer:

or al,00100000b

8)Answer:

and al,00001111b

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote