50% found this document useful (2 votes)
813 views7 pages

Part A - Micro-Project Proposal: Assembly Language Program To Print String

The document describes an assembly language program to print the string "HELLO WORLD!!!". It includes details on the data and code segments used, how the string is defined and stored in memory, and how an interrupt is used to print the string before exiting the program. The aim is to provide information on creating a basic "Hello World" style assembly language program.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
813 views7 pages

Part A - Micro-Project Proposal: Assembly Language Program To Print String

The document describes an assembly language program to print the string "HELLO WORLD!!!". It includes details on the data and code segments used, how the string is defined and stored in memory, and how an interrupt is used to print the string before exiting the program. The aim is to provide information on creating a basic "Hello World" style assembly language program.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Annexure-I

Part A – Micro-project Proposal

Assembly Language program to print string

1.0 Aim of the Micro-project:


Assembly Language program to print string

2.0 Brief Introduction:


A single program is divided into four Segments which are 1. Data Segment, 2. Code
Segment, 3. Stack Segment, and 4. Extra  Segment. Now, from these one is compulsory i.e. Code
Segment if at all you don’t need variable for your program. if you need variable for your program
you will need two Segments i.e. Code Segment and Data Segment.

3.0 Aim of the project :


a) To give detailed information of how to create a calculator using java program.
b) To learn and teach about the different uses of the calculator in daily life
c) To describe about thefunctions and syntax used in java.
d) To give information about java language

4.0 Action plan :

1
Sr. Details of Activity Planned Start Planned Finish Name of Responsible
No. Date Date Team Members

1 Gathering the raw 27-12-2018 05-01-2019


information related to the
project 3:00 to 5:00 3:00 to 5:00

2 Analysis 07-01-2019 10-01-2019


3:00 to 5:00 3:00 to 5:00
3 Collecting Images 17-01-2019 21-01-2019
2:00 to 4:30 3:00 to 5:00

4 Gathering uses of 26-01-2019 02-02-2019


calculator
3:00 to 5:00 3:00 to 4:00 Fere Rahul
Kalage Gaurav
5 Re-verifying all the 10-02-2019 19-02-2019
collected data Arbad Prasad
2:30 to 4:30 3:00 to 5:00
MadhurkarAniket
6 Reporting the functions 24-02-2019 27-02-2019
used in project
3:00 to 5:00 2:30 to 4:30

7 Prepare a report on ALP 04-03-2019 09-03-2019


program
2:30 to 4:00 2:30 to 4:00

5.0 Resources Used :

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 __

6.0 Names of Team Members with Roll No. :

Sr. Name of Student Roll No.


No.
1 Kalge Gaurav 36
2 Fere Rahul 34
3 Arbad Prasad 29
4 MadhurkarAniket 38

Annexure-II

3
Micro-Project Report
Assembly Language program to print string

1.0 Brief Description :

First Line – DATA SEGMENT


DATA SEGMENT is the starting point of the Data Segment in a Program and DATA is the name
given to this segment and SEGMENT is the keyword for defining Segments, Where we can declare
our variables.

Next Line – MESSAGE DB “HELLO WORLD!!!$”


MESSAGE is the variable name given to  a Data Type (Size) that is DB. DB stands for Define Byte
and is of One byte (8 bits). In Assembly language programs, variables are defined by Data Size not
its Type. Character need One Byte so to store Character or String we need DB only that don’t mean
DB can’t hold number or numerical value. The string is given in double quotes. $ is used as NULL
character in C programming, So that compiler can understand where to STOP.

Next Line – DATA ENDS


DATA ENDS is the End point of the Data Segment in a Program. We can write just ENDS But to
differentiate the end of which segment it is of which we have to write the same name given to the
Data Segment.

Next Line – CODE SEGMENT


CODE SEGMENT is the starting point of the Code Segment in a Program and CODE is the name
given to this segment and SEGMENT is the keyword for defining Segments, Where we can write the
coding of the program.

Next Line –     ASSUME DS:DATA CS:CODE


In this Assembly Language Programming, their are Different Registers present for Different Purpose
So we have to assume DATA is the name given to Data Segment register and CODE is the name
given to Code Segment register (SS,ES are used in the same way as CS,DS )

Next Line – START:


START is the label used to show the starting point of the code which is written in the Code Segment.
: is used to define a label as in C programming.

Next Line – MOV AX,DATA


MOV DS,AX
After Assuming DATA and CODE Segment, Still it is compulsory to initialize Data Segment to DS
register.  MOV is a keyword to move the second element into the first element. But we cannot move
DATA Directly to DS due to MOV commands restriction, Hence we move DATA to AX and then
from AX to DS. AX is the first and most important register in the ALU unit. This part is also called
INITIALIZATION OF DATA SEGMENT and It is important so that the Data elements or variables
in the DATA Segment are made accessable. Other Segments are not needed to be initialized, Only
assuming is enhalf.

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.

Next Line – MOV AH,4CH


INT 21H
The above two line code is used to exit to dos or exit to operating system. 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 4ch, That means Return to Operating System or
DOS which is the End of the program.

Next Line – CODE ENDS


CODE ENDS is the End point of the Code Segment in a Program. We can write just ENDS But to
differentiate the end of which segment it is of which we have to write the same name given to the
Code Segment.

Last Line – END START


END START is the end of the label used to show the ending point of the code which is written in the
Code Segment.

2.0 Aim of the Micro-Project :


a) To give detailed information of how to create a calculator using java program.
b) To learn and teach about the different uses of the calculator in daily life
c) To describe about the functions and syntax used in java.
d) To give information about java language

3.0 Uses of the microprocessor 8086 program :


The assembly programming language is a low-level language which is developed by using
mnemonics. The microcontroller or microprocessor can understand only the binary language like 0's
or 1's therefore the assembler convert the assembly language to binary language and store it the
memory to perform the tasks.

5
4.0 code:
DATA SEGMENT

MESSAGE DB "HELLO WORLD!!!$"

ENDS

CODE SEGMENT

ASSUME DS:DATA CS:CODE

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.0 Skill developed/learning out of the micro-project :

1. We learned lots of things about the different segments.


2. We learned about flags.

6
3. We demonstrate the uses of initialize string in ALP.
4. We learned the same name given to the Code Segment.

7.0 Reference Links :


1. http://cssimplified.com/computer-organisation-and-assembly-language-programming/beginner-
write-your-first-assembly-language-program-hello-world-explained
2. https://www.geeksforgeeks.org/assembly-language-program-8086-microprocessor-divide-16-bit-
number-8-bit-number/
3. https://www.elprocus.com/8086-assembly-language-programs-explanation/

You might also like