Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

d. What language(s) did they speak?

Answered: 1 week ago

Question

6. What questions would you suggest should be included?

Answered: 1 week ago

Question

5. Who should facilitate the focus group?

Answered: 1 week ago