Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform same task by modifying given code without using XLAT instruction CEN301 - Microprocessors LAB TASK 4 Write a program that, user will enter a

image text in transcribed Perform same task by modifying given code without using XLAT instruction

CEN301 - Microprocessors LAB TASK 4 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 DTL DB "ONE TWO THREEFOUR FIVE DTU DB ODH, AH,'S' DTS 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,311 (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,318 given period just submit the code that you MOV CX, 05H completed until that time. MUL CL RET (3) In case of doubt about cheating, your grade EXIT: MOV AH, 4CH will not be satisfactory so you need to MOV AL, write code yourself in any code INT 21H KEYIN ENDD dublication, original will not be searched). (4) Please submit working codes, syntax PRINT PROC LEA BX, DTL errors are not the subject of this course so 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 CEN301 - Microprocessors LAB TASK 4 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 DTL DB "ONE TWO THREEFOUR FIVE DTU DB ODH, AH,'S' DTS 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,311 (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,318 given period just submit the code that you MOV CX, 05H completed until that time. MUL CL RET (3) In case of doubt about cheating, your grade EXIT: MOV AH, 4CH will not be satisfactory so you need to MOV AL, write code yourself in any code INT 21H KEYIN ENDD dublication, original will not be searched). (4) Please submit working codes, syntax PRINT PROC LEA BX, DTL errors are not the subject of this course so 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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions