Question: Program Listing Title Exp. 4 - program 1 This programs displays a string terminated by a S sign using INT 21H function 09H. MODEL SMALL

 Program Listing Title "Exp. 4 - program 1 This programs displays

Program Listing Title "Exp. 4 - program 1 This programs displays a string terminated by a S sign using INT 21H function 09H. MODEL SMALL DATA MESSAGE DB This is the message to be displayed, ' STACK 200 MOV AH,02 Function 02H, display character .CODE MOV DL AL Load character to be displayed INT 21H MOV AX, ODATA MOV DS, AX LEA DX, MESSAGE MOV AH,09H INT 21H MOV DX,OFFSET MESSAGE MOV AH,09H MOV AH, OSH Function read without echo INT 21H INT 21H Character read is returned in AL register. No echo on the display MOV BL, AL Save character read in BL register MOV AX, 4COOH Exit to DOS LEA DX, MESSAGE INT 21H MOV AH,09H display MESSAGE2 END INT 21H Character input with echo INT 21H, function call 01H MOV AH,02 Function 02H, display character Character input without echo INT 21H, function call 08H MOV DL, BL Load character to be displayed from BL INT 21H MOV AH, 4CH : Exit to DOS Title "Exp. 4 - program 2 INT 21H MODEL SMALL DATA 1. Comple and in program (see program lasting below) MESSAGE DB 'Enter a characters MESSAGE2 DB The character you typed is: "OOH,OH, S 2. Replace the line MOV DX,OFFSET MESSAGE By LEA OX MESSAGE STACK 200 CODE 3. Then nopeat sop I. chat do you notice? MOV AX.@DATA MOV DS, AX INT 21H Display message 2 4. Comple and run program 2 see programisting below 5. After running the program notice here the etfect of the characters OCH ondOAH at the end of the line containing: MESSAGE. What is your conclusion? & Notice ohto the effect of the function collOTH ond0H 7. Write down all your conclusions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!