TITLE HOMEWORK03: ; Read a character input, then display it at the next position ; on the same line and beep the computer before exiting. .MODEL SMALL .STACK 100H ; Declare variables used in program. .DATA MESSAGE DB 'ENTER A CHARACTER:','$' LETTER DB ?,'$' .CODE MAIN PROC MOV AX,@DATA MOV DS,AX ; Display opening message. MOV AH,9 LEA DX,MESSAGE INT 21H ; Read input character and store into variable LETTER. MOV AH,1 INT 21H MOV LETTER,AL ; Display input character. MOV AH,9 LEA DX,LETTER INT 21H ; Beep the computer when exit. MOV AH,2 MOV DL,07H INT 21H ; Exit to DOS. MOV AH,4CH INT 21H MAIN ENDP END MAIN