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

 DTL DTS Write a program that, user will enter a number

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