Write and run an 8086 assembly language program displays a string stored in memory – IGNOU BCA Assignment 2016 – 17

By | October 9, 2016

BACHELOR OF COMPUTER APPLICATIONS

Course Code : BCSL-022
Course Title : Assembly Language Programming Lab
Assignment Number : BCA(2)/L-022/Assignment/16-17
Maximum Marks : 50
Weightage : 25%

 

Write and run an 8086 assembly language program displays a string stored in memory. You must use appropriate interrupt for the same – IGNOU MCA Assignment 2016 – 17

Code:-

DATA SEGMENT
STR DB “GANGADHAR$”
DATA ENDS

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

LEA DX,STR
MOV AH,9
INT 21H

MOV AH,4CH
INT 21H
CODE ENDS

END START

DATA SEGMENT
STR DB "GANGADHAR$"
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
LEA DX,STR
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START

 

Screen Shots :-

Asm_program_Display_String_Memory

Output After Execution :-

Asm_program_Display_String_Memory_Out