Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CEN301 - Microprocessors LAB TASK 4 Write a program that, user will enter a number between 1 and 5 (both included), then entered number will
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. SEGMENT DTS DTL DTU DTS DE ONE TWO THREEFOUR FIVE DE ODH, AH'S ENDS COS SEGMENT This is the example which is given in the first page of Lecture Set X. MAIN NEXT: PROC FAR ASSUME DS:D99, CS:CDS MOV AX, DTS MOV DS, AX CALL KEYIN CALL PRINE CALL LINE JMP NEXT ENDP LABWORK Perform same task by modifying given code without using XLAT instruction MAIN KEYIN PROC MOV AH, OH INT 168 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 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 EX, UTL 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, UTJ 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