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.

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.

Perform same task by modifying given code without using XLAT instruction.( change the XLAT command WITH SOMETHING SIMILAR)

image text in transcribed

DTS DTL DTU DTS SEGMENT DB "ONE TWO THREEFOUR FIVE DB ODH, AH, 'S! ENDS 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 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, INT 21H ENDP EXIT: 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 ENDP PRINT 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

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions