.MODEL SMALL .STACK 100h .DATA .CODE MAIN PROC MOV AH, 1 INT 21h CMP AL, 'E' JE EXCELLENT CMP AL, 'V' JE VERY_GOOD CMP AL, 'G' JE GOOD JMP END EXCELLENT: MOV DX, OFFSET EXCELLENT_MSG JMP PRINT VERY_GOOD: MOV DX ,OFFSET VERY_GOOD_MSG JMP PRINT GOOD: MOV DX, OFFSET GOOD_MSG PRINT: MOV AH, 9 INT 21h END: MOV AH, 4Ch INT 21h EXCELLENT_MSG DB 'Excellent$', 0 VERY_GOOD_MSG DB 'Very Good$', 0 GOOD_MSG DB 'Good$', 0 MAIN ENDP END MAIN