Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

Write a note on job design.

Answered: 1 week ago

Question

=+Trainers from headquarters? Local trainers? Independent trainers?

Answered: 1 week ago