Write a program in 8086 assembly Language (with proper comments) that passes a parameter containing a lower case alphabet to a near procedure named TOUPCASE, which converts the lowercase alphabet to upper case and returns it to the calling assembly program – IGNOU MCA Assignment 2016 – 17

By | October 24, 2016

MASTER OF COMPUTER APPLICATIONS

Course Code : MCSL-012
Course Title : Computer Organisation and Assembly Language Programming
Assignment Number : MCA(1)/012/Assignment/16-17
Maximum Marks : 50
Weightage : 25%

 

Write a program in 8086 assembly Language (with proper comments) that passes a parameter containing a lower case alphabet to a near procedure named TOUPCASE, which converts the lowercase alphabet to upper case and returns it to the calling assembly program – IGNOU MCA Assignment 2016 – 17

Code:- 

DATA ENDS

CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX

MOV BX,61H

LEA DX,MSG1
MOV AH,9
INT 21H

LEA DL,BL
MOV AH,2
INT 21H

LEA DX,MSG2
MOV AH,9
INT 21H

PUSH BX

CALL TOUPCASE

POP DX

MOV AH,2
INT 21H

MOV AH,4CH
INT 21H
CODE ENDS

TOUPCASE PROC NEAR
POP AX
POP BX

SUB BL,20H

PUSH BX
PUSH AX
RET
TOUPCASE ENDP

END START

DATA ENDS
CODE SEGMENT
ASSUME DS:DATA,CS:CODE
START:
MOV AX,DATA
MOV DS,AX
MOV BX,61H
LEA DX,MSG1
MOV AH,9
INT 21H
LEA DL,BL
MOV AH,2
INT 21H
LEA DX,MSG2
MOV AH,9
INT 21H
PUSH BX
CALL TOUPCASE
POP DX
MOV AH,2
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
TOUPCASE PROC NEAR
POP AX
POP BX
SUB BL,20H
PUSH BX
PUSH AX
RET
TOUPCASE ENDP
END START

 

Screen Shots :-

Asm_program_Proc_ToUpCase

Output After Execution :-

Asm_program_Proc_ToUpCase_Output