Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DTL DTJ DTS Write a program that, user will enter a number between 1 and 5 (both included), then entered number will be written on
DTL DTJ 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 THREEFOUR FIVE" DB ODH, OAH,'$' ENDS This is the example which is given in the first page of Lecture Set X. TWO CDS SEGMENT 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,31H JL EXIT CMP AL, 35H JG EXIT SUB AL,31H MOV CX, 05H MUL CL RET MOV AH, 4CH MOV AL,0 INT 21H ENDP EXIT: (1) Labworks will be prepared and submitted to e-learning 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 or a text file will be appropriate. KEYIN PRINT LPR: PROC LEA BX, DTL PUSH AX XLAT MOV AH,02H MOV DL, AL INT 21H POP AX INC AL LOOP LPR RET PRINT ENDP 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started