0% found this document useful (0 votes)
58 views

Alp MP Front

This micro-project report describes developing an assembly language program to determine if a number is positive, negative, or zero. A group of 5 students wrote an 8086 assembly code program that uses the AAA instruction, which adjusts the result of ASCII addition, to add two ASCII numbers. The report outlines the aim, integrated course outcomes, procedure followed including coding and testing, and resources used such as laptop and software.

Uploaded by

Bhumi Khivasara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Alp MP Front

This micro-project report describes developing an assembly language program to determine if a number is positive, negative, or zero. A group of 5 students wrote an 8086 assembly code program that uses the AAA instruction, which adjusts the result of ASCII addition, to add two ASCII numbers. The report outlines the aim, integrated course outcomes, procedure followed including coding and testing, and resources used such as laptop and software.

Uploaded by

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

Micro-Project Report On

“Write an alp program to determine positive,negative or zero number”

Submitted for partial fulfillment of course IF3409 Assembly


Language Programming of the Diploma Programme in
Information Technology

Submitted by –

20IF033 Bhumi Narendra Khivasara


20IF066 Aryan Pramod Varma
20IF053 Tanu Vinod Rangarkar
20IF039 Samir Suryakant Mohod
20IF003 Sanika Vishwas Awhale

Under the Guidance of

Dr. P. P. Karde

Department of Information Technology,

Government Polytechnic, Amravati.


(An Autonomous Institute of Government of Maharashtra)

2022-2023

7
CERTIFICATE
This is to certify that the Micro-project entitled

“Write an alp program to determine positive,negative or zero number”

is a bonafide work and it is submitted to the Government Polytechnic,


Amravati.
By

20IF033 Bhumi Narendra Khivasara


20IF066 Aryan Pramod Varma
20IF053 Tanu Vinod Rangarkar
20IF039 Samir Suryakant Mohod
20IF003 Sanika Vishwas Awhale

In the partial fulfilment of the course IF3409 Assembly Language


Programming for the requirement of the Diploma in Information Technology,
during the academic year 2022-2023 under my guidance.

Dr. P.P. Karde Dr. P.P. Karde


(Subject teacher) (Head of Department)

Department of Information Department of Information


Technology Government Technology Government
Polytechnic Amravati Polytechnic Amravati

Department of Information Technology,


Government Polytechnic, Amravati.

(An Autonomous Institute of Government of Maharashtra)

YEAR (2022 -2023)

8
ACKNOWLEDGEMENT
It gives me immense pleasure in submitting the microproject report on topic
“Write an ALP to add 2 ASCII numbers” to my guide Dr. P. P. Karde who
was a constant source of guidance and inspiration for devolving for
preparation of project. I am also thankful to all staff- members of
Information Technology department, who have indirectly guided and helped
us in preparation of this project.

I am extremely thankful to Dr. V.R. Mankar, Principal and Dr. P. P.


Karde Head Of Department of Information Technology, for providing all the
required sources for the successful completion of our project. At last, I am
thankful to all my friends whose encouragement and constant inspiration
helped me for the preparation of the project.

Thanking you,

Second Year Information Technology

9
Department of Information Technology,

Government Polytechnic, Amravati.


(An Autonomous Institute of Government of Maharashtra)

Year (2022 -2023)

Vision

❖ To ensure excellent education environment with the technical


capability inthe field of IT engineering to serve vibrant Industry &
Society.

Mission

❖ Facilitate Students to learn the basics of IT Engineering entailing the


technical gain.
❖ Train Students with technical skills with rational capacity to meet the
requirements of industry with technological aspect.
❖ Motivate the students for an advance knowledge in IT engineering and
other value added programs for their holistic development.
❖ Imparting Ethical values, leadership and Social value in Students
whichtransform them in to good human being.
❖ Provide an academic environment and consultancy services to the
industryand society in the area of IT & Computer engineering

10
PART A
Format for Micro-Project Proposal

Title of the Microproject: Write an ALP to determine positive , negative or zero


numbers.
.
1.0 Brief Introduction
In this micro-project we have developed a program to add 2 ASCII numbers. ASCII is a 7-bit character set
containing 128 characters. It contains the numbers from 0-9, the upper and lower case English letters from
A to Z, and some special characters. We have used AAA instruction in this program. AAA instruction
adjusts the result of an ASCII addition after executing an add instruction.

2.0 Aim of the Micro-Project

• Know the use of AAA instruction


• Know the concept of adding ASCII Numbers

3.0 Action Plan


S.N. Details of activity Planned Planned I. Code &
start date Finish date Name of Team Members

1 Analyze problem 15/11/2022 17/11/2022 All Members

2 Planning of solutions 18/11/2022 19/11/2022 All Members


3 Coding 20/11/2022 24/11/2022 20IF033-Bhumi khivasara
20IF066-Aryan Varma
4 Program testing 25/11/2022 26/11/2022 All Members

5 Prepare report & Compilation of 27/11/2022 28/11/2022 20IF033-Bhumi Khivasara


data. 20IF053-Tanu Rangarkar
6 Verification of data 29/11/2022 30/11/2022 20IF053-Tanu Rangarkar
20IF003-Sanika Awhale

4.0 Resources Used

S.N. Name of Resource/material Specifications Qty Remarks

1 Laptop Windows 10 1
Version : 21H2

2 Google Chrome Version : 162.3 1

3. Microsoft office Microsoft office 1


Home and student
2019

7
Guideline for Assessment of Micro-Project Evaluation as per suggested Rubric for Assessment of Micro-Project

Process Relevance of the courses & proposals


Assessment
(06)

Literature survey/market
survey/information collection

Analysis of data & completion of the


target as per proposal/

Product Report Preparation/Quality of


Assessment Prototype/model
(04)

Presentation / Viva

8
PART B
Format for Micro-Project Report
Title of the Microproject Write an ALP to determine positive , negative or zero
numbers.
1.0 Brief Introduction
In this micro-project we have developed a program to add 2 ASCII numbers. ASCII is a 7-bit character set
containing 128 characters. It contains the numbers from 0-9, the upper and lower case English letters from
A to Z, and some special characters. We have used AAA instruction in this program. AAA instruction
adjusts the result of an ASCII addition after executing an add instruction.

2.0 Aim of the Micro-Project


• Know the use of AAA instruction in 8086
• Know the concept of adding ASCII Numbers in 8086

3.0 Course Outcomes Integrated

1. Describe the components & Pin diagram of microprocessor.


2. Illustrate the Architectural mechanism of 8086
3. Identify the appropriate registers & basic instruction sets of 8086 microprocessors in programming
4. Develop & execute programs in 8086 assembly language
5. Illustrate the concept of stacks & Subroutines and Identify various types of errors during programming
6. Describe the concept of I/O interfaces with memory & Interrupt mechanism.

4.0 Actual Procedure Followed

S.N. Details of activity Planned Planned I. Code &


start date Finish date Name of Team Members

1 Analyze problem 15/11/2022 17/11/2022 All Members

2 Planning of solutions 18/11/2022 19/11/2022 All Members


3 Coding 20/11/2022 24/11/2022 20IF033-Bhumi khivasara
20IF066-Aryan Varma
4 Program testing 25/11/2022 26/11/2022 All Members

5 Prepare report & Compilation of 27/11/2022 28/11/2022 20IF033-Bhumi Khivasara


data. 20IF053-Tanu Rangarkar
6 Verification of data 29/11/2022 30/11/2022 20IF053-Tanu Rangarkar
20IF003-Sanika Awhale

5.0 Actual Resources Used


S.N. Name of Resource/material Specifications Qty Remarks

9
1 Laptop Windows 10 1
Version : 21H2

2 Google Chrome Version : 162.3 1

3. Microsoft office Microsoft office 1


Home and student
2019

6.0 Outputs of the Micro-Projects

7.0 Skills Developed/learning out of this Micro-Project


Importance of communication skills, team work and group discussion

Signature of Student

1. Bhumi Narendra Khivasara (20IF033)


2. Aryan Pramodrao Varma (20IF066)
3. Tanu Vinod Rangarkar (20IF053)
4. Samir Suryakant Mohod (20IF039)
5. Sanika Vishwas Awhale (20IF003

8.0 Assessment by Faculty as per Rubrics

Process Assessment Product Total Marks Signature of Faculty


(06) Assessment
(04) (10)

10
Theoretical Background

Procedures
A procedure is a set of code that can be branched to and returned from in such a way that the code is as if it were
inserted at the point from which it is branched to. The branch to procedure is referred to as the call, and the
corresponding branch back is known as the return. The return is always made to the instruction immediately
following the call regardless of where the call is located.

MOV

The MOV instruction is the most important command in the 8086 because it moves data from one
location to another. It also has the widest variety of parameters; so it the assembler programmer can
use MOV effectively, the rest of the commands are easier to understand.

format:
MOV destination,source

CMP

The CMP instruction can be used to compare two 8-bit or two 16-bit numbers. - Whenever a
compare operation is performed the result of such an operation reflects in one of the six status
flags CF, AF, OF, PF, SF and ZF. -The CMP operation is also known as the subtraction method
as it uses two`s complement for it.

INT 21h
Get Character from keyboard buffer (if any) or set ZF=1. for input returns: ZF set if no Character
available and AL = 00h, ZF Clear if Character available. AL = Character read; buffer is Cleared.
INT 21h / AH=7 – Character input without echo to AL.

11
Algorithm

1. Input a number from the user.


2. If number is less than zero, then it is a negative integer.
3. Else if number is greater than zero, then it is a positive integer.
4. Else, the number is equal to zero.
5. End.

Flowchart

12
Program Code

.model small
.stack 100h
.data
msg db 0ah,0dh,'negative$'
msg1 db 0ah,0dh,'positive$'
msg2 db 0ah,0dh, 'zero$'
.code
main proc
mov ax,@data
mov ds,ax

mov ah,1
int 21h
mov bl,al

mov cl,30h

cmp bl,cl
jl negative
je zero
jg positive

negative:
lea dx,msg
mov ah,9
int 21h
jmp END

zero:
lea dx,msg2
mov ah,9
int 21h
jmp END

positive:
13
lea dx,msg1
mov ah,9
int 21h

END:
mov ah,4ch
int 21h
main endp
end main

Result

Input
3

Output

Positive

Conclusion : Thus, we have developed and executed a program for


determing a number is either positive,negative or zero.

14

You might also like