Question: 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.

 Write a program that, user will enter a number between 1

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 DTL DTJ DTS SEGMENT DB "ONE TWO THREEFOUR FIVE DE ODH, OAH, $' ENDS CDS SEGMENT This is the example which is given in the first page of Lecture Set X. MAIN NEXT: PROC FAR ASSUME DS: DTS, CS:CDS MOV AX, DTS MOV DS, AX CALL KEYIN CALL PRINT CALL LINE JMP NEXT ENDP LABWORK Perform same task by modifying given code without using XLAT instruction MAIN KEYIN PROC MOV AH, 10H INT 16H CMP AL,311 JL EXIT CMP AL,35H JG EXIT SUB AL,31H MOV CX, 05 MUL CL RET MOV AH, 4CH MOV AL, INT 21H ENDE EXITE (1) Labworks will be prepared and submitted to e-leaming in given period (2) In case of not completing overall task in given period just submit the code that you completed until that time. (3) In case of doubt about cheating, your grade will not be satisfactory so you need to write code yourself in any code dublication, original will not be searched). (4) Please submit working codes, syntax errors are not the subject of this course so these kind of errors will not be fixed by lecturer (5) Please submit a single file including all codes in it. A word file ora text file will be appropriate KEYIN PRINT LPR: PROC LEA BX, DTI PUSH AX XLAT MOV AH,02H MOV DL,AL INT 21H POP AX INC AL LOOP LPR RE ENDP PRINT PROS MOV AH,09 LEA OX, DO INT 21H RET ENDP LINE CDE ENDO EN 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!