Question: 1.Write a program that prompts the user to enter a character, and in subsequent lines prints its ASCII code in binary and the number of
1.Write a program that prompts the user to enter a character, and in subsequent lines prints its ASCII code in binary and the number of 1 bit in its ASCII code.
2. Write a program that prompts the user to type a hex number of four hex digits or less, and outputs it in binary on the next line. If the user enters an illegal character, he or she should be prompted to begin again. Accept only uppercase letters. Your program may ignore any input beyond four characters.
Do both codes in emu 8086 assembly language and share the output screenshots.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
