Part A - Micro-Project Proposal: Assembly Language Program To Print String
Part A - Micro-Project Proposal: Assembly Language Program To Print String
1
Sr. Details of Activity Planned Start Planned Finish Name of Responsible
No. Date Date Team Members
2
Sr.
No Name of Specification Quantity Remark
Resource/Material s
1 Personal computer Processor:Rayzon 3 2200g.Ram: 8GB
DDR4 2100MHz, HDD: 512GB
1 ____
2 Internet 10mbps BSNL LAN Network __ __
3 __
Annexure-II
3
Micro-Project Report
Assembly Language program to print string
4
Next Line – LEA DX,MESSAGE
MOV AH,9
INT 21H
The above three line code is used to print the string inside the MESSAGE variable. LEA stands for
Load Effective Address which is used to assign Address of variable to DX register (The same can be
written like this also MOV DX,OFFSET MESSAGE both mean the same). To do input and output in
Assembly Language we use Interrupts. Standard Input and Standard Output related Interupts are
found in INT 21H which is also called as DOS interrupt. It works with the value of AH register, If
the Value is 9 or 9h or 9H (all means the same), That means PRINT the string whos Address is
Loaded in DX register.
5
4.0 code:
DATA SEGMENT
ENDS
CODE SEGMENT
START:
MOV AX,DATA
MOV DS,AX
LEA DX,MESSAGE
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
ENDS
END START
Output :
6
3. We demonstrate the uses of initialize string in ALP.
4. We learned the same name given to the Code Segment.