Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab Exercise No-3: Write a program in 8086 MP to print the Upper case letters from A-Z. MODEL SMALL STACK 100H .DATA PROMPT DB 'The
Lab Exercise No-3: Write a program in 8086 MP to print the Upper case letters from A-Z. MODEL SMALL STACK 100H .DATA PROMPT DB 'The Upper Case Letters from A to Z are : $' CODE initialize DS MAIN PROC MOV AX, @DATA MOV DS, AX LEA DX, PROMPT load and print PROMPT MOV AH, 9 INT 21H MOV CX, 26 MOV AH, 2 MOV DL, 65 @LOOP: INT 21H z initialize CX 3 set output function set DL with A z loop start print character increment DL to next ASCII character decrement CX jump to label @LOOP if CXis 0 return control to DOS INC DL DEC CX JNZ @LOOP MOV AH, 4CH INT 21H MAIN ENDP END MAIN Write a program in 8086 MP to find the Largest number among two-inputted number. include 'emu8086.inc org 100h set location counter to 100h imp. CodeStart_DataStart: promptMsg dh "Enter first number:",0 min Msg dh "Largest number=",0 promptMsgtwo dh "Enter second number : ",0 newline db 13, 10,0 numl dw2 num2 dw? num Small dw 2 CodeStart; mov si, offset promptMsg call print_string call scan.pum mov num1, cx mov si. offset newline call print string mov si. offset promptMsgtwo call print string call scan num mov num2, cx mov si. offset newline call print_string mov si. offset min Msg call print string mox bx, num2 compare values CMP bx, num1 JB large mov ax, num2 JMP printnum large: mov ax, num1 it is here because numl is smaller than num2 printnum: call print num. EndLabel: ret DEFINE_PRINT_STRING DEFINE_SCAN_NUM DEFINE_PRINT_NUM DEFINE_PRINT_NUM_UNS Lab Exercise No - 1: Lab Exercise No. 1 - ALP to write a program in 8086 MP to compare among two numbers. include 'emu8086.inc' ORG 100h MOV AL, 250 CMP AL, 5 JA labeli PRINT 'AL is not above 5' JMP exit labeli: PRINT 'AL is above 5' exit: RET Lab Submissions: 1. Use program-1, to enter the number from keyboard and compare it. 2. Write a program in 8086 MP to find the smallest number among two-inputted number. 3. Write a program in 8086 MP to print the lower case letters from a-z. Lab Exercise No-3: Write a program in 8086 MP to print the Upper case letters from A-Z. MODEL SMALL STACK 100H .DATA PROMPT DB 'The Upper Case Letters from A to Z are : $' CODE initialize DS MAIN PROC MOV AX, @DATA MOV DS, AX LEA DX, PROMPT load and print PROMPT MOV AH, 9 INT 21H MOV CX, 26 MOV AH, 2 MOV DL, 65 @LOOP: INT 21H z initialize CX 3 set output function set DL with A z loop start print character increment DL to next ASCII character decrement CX jump to label @LOOP if CXis 0 return control to DOS INC DL DEC CX JNZ @LOOP MOV AH, 4CH INT 21H MAIN ENDP END MAIN Write a program in 8086 MP to find the Largest number among two-inputted number. include 'emu8086.inc org 100h set location counter to 100h imp. CodeStart_DataStart: promptMsg dh "Enter first number:",0 min Msg dh "Largest number=",0 promptMsgtwo dh "Enter second number : ",0 newline db 13, 10,0 numl dw2 num2 dw? num Small dw 2 CodeStart; mov si, offset promptMsg call print_string call scan.pum mov num1, cx mov si. offset newline call print string mov si. offset promptMsgtwo call print string call scan num mov num2, cx mov si. offset newline call print_string mov si. offset min Msg call print string mox bx, num2 compare values CMP bx, num1 JB large mov ax, num2 JMP printnum large: mov ax, num1 it is here because numl is smaller than num2 printnum: call print num. EndLabel: ret DEFINE_PRINT_STRING DEFINE_SCAN_NUM DEFINE_PRINT_NUM DEFINE_PRINT_NUM_UNS Lab Exercise No - 1: Lab Exercise No. 1 - ALP to write a program in 8086 MP to compare among two numbers. include 'emu8086.inc' ORG 100h MOV AL, 250 CMP AL, 5 JA labeli PRINT 'AL is not above 5' JMP exit labeli: PRINT 'AL is above 5' exit: RET Lab Submissions: 1. Use program-1, to enter the number from keyboard and compare it. 2. Write a program in 8086 MP to find the smallest number among two-inputted number. 3. Write a program in 8086 MP to print the lower case letters from a-z
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