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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.