Question: Using DOSBOX YLAT Write a program that, user will enter a number between 1 and 5 (both included), then entered number will be written on

Using DOSBOX

Using DOSBOX YLAT Write a program that, user will enter a number

YLAT Write a program that, user will enter a number between 1 and 5 (both included), then entered number will be written on screen with letters. If entry is NOT a number in given range program will exit. DTS SEGMENT DTL DB MONE TWO THREEFOUR FIVE " DTJ DB ODH, OAH,'$! DTS ENDS This is the example which is CDS SEGMENT given in the first page of Lecture Set X. MAIN PROC FAR ASSUME DS:DTS, CS:CDS MOV AX, DTS MOV DS, AX NEXT: CALL KEYIN CALL PRINT CALL LINE JMP NEXT MAIN ENDP KEYIN PROC MOV AH, 10H INT 16H CMP AL,311 JL EXIT CMP AL, 35H JG EXIT SUB AL,311 MOV CX, 05H MUL CL RET EXIT: MOV AH, 4CH MOV AL,0 INT 21H KEYIN ENDP PRINT PROC LEA BX, DTL LPR: PUSH AX MOV AH,02H MOV DL, AL TNT 21H POP AX INC AL LOOP LPR RET ENDP PRINT LINE PROC MOV AH,09H LEA DX, DTJ INT 21H RET ENDP LINE CDS ENDS END MAIN

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!