Question: Solve with steps Problem 2. Programming Questions You may need the following functions for INT 21H AH = 09H: for printing a string ending with
Problem 2. Programming Questions You may need the following functions for INT 21H AH = 09H: for printing a string ending with $ AH = 02H: for printing a single character AH 01H: for reading one character from the keyboard (user response) to end the program and return to DOS ASCII codes: New line: use 0AH or 10 Carriage Return: use 0DH or 13 Note: Write comments to explain your programs 10. Write a program that consists of data and code segments (SEG_DATA and SEG CODE). The data segment contains two variables of byte size, NUM and NUM ONES The code segment starts at address CS:0100H and it contains the program that counts the number of ones (1's) in the variable NUM, and then it stores that count in NUM ONES and displays it on the screen. When the program finishes execution, it should exit to DOS [6 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
