Nothing Special   »   [go: up one dir, main page]

MIC Microproject

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

MICROPROCESSORS

PROPOSAL ON PROGRAM TO USE


CONDITIONAL INSTRUCTIONS

1.0 Brief Introduction:

Conditional instruction are always short jumps in the 8086.These


instructions will cause a jump to a label given instruction if the desired
condition(s) occurs in the programe before the execution of the instruction.
the destination must be in the range of-128 bytes to +127 bytes from the
address of the instruction after the conditional transfer instruction. if the
jump is not taken, execution simply goes on to the next instruction.

2.0 Aim of the Micro-Project:

This Micro-Project aims at


1. Write a 8086 assembly language program to use conditional
instruction.

3.0 Intended Course Outcome:

• A 8086 Microprocessor Assembly Language Program That Uses


Conditional Instructions.

PVPIT
4.0 Literature Review:

5.0 Proposed methodology:

6.0 Resources Required:

No Name of Specifications Quantity Remarks


resources/material
1. Software Tasm v1.4, - 1
Microsoft
word
2. Operating system Windows 10 - 2

7.0 Action plan:

No Detail of Planned Planned Team of responsible


activity start date finish member
date
1. Information GIRISH DESAI &
collection SANSKRUTI BHAKARE

2. Proposal SANSKRUTI BHAKARE


creation & GIRISH DESAI

3. Report GIRISH DESAI &


creation SANSKRUTI BHAKARE

2
MICRO PROJECT REPORT
ON
MICROPROCESSORS
Title of Micro-Project: Program to Use
Conditional Instruction

1.0 Brief Description:

Conditional instruction are always short jumps in the 8086. In these


types of instructions, the processor must check for the particular condition.
If it is true, then only the jump takes place else the normal flow in the
execution of the statements is maintained.
The ALU operations set flags in the status word (Flag register). The
conditional jump statements test the flag and jump is the flag is set. There
are following types of conditional jump instructions:

i) JC: Stands for 'Jump if Carry'

It checks whether the carry flag is set or not. If yes, then jump takes place,
that is: If CF = 1, then jump.

ii) JNC: Stands for 'Jump if Not Carry'

It checks whether the carry flag is reset or not. If yes, then jump takes
place, that is: If CF = 0, then jump.

iii) JE / JZ: Stands for 'Jump if Equal' or 'Jump if Zero'

It checks whether the zero flag is set or not. If yes, then jump takes place,
that is: If ZF = 1, then jump.

iv) JNE / JNZ: Stands for 'Jump if Not Equal' or 'Jump if Not Zero'

3
It checks whether the zero flag is reset or not. If yes, then jump takes place,
that is: If ZF = 0, then jump.

v) JP / JPE : Stands for 'Jump if Parity' or 'Jump if Even Parity'

It checks whether the Parity flag is set or not. If yes, then jump takes place,
that is: If PF = 1, then jump.

vi) JNP / JPO : Stands for 'Jump if Not Parity' or 'Jump if Odd
Parity'

It checks whether the Parity flag is reset or not. If yes, then jump takes
place, that is: If PF = 0, then jump.

2.0 Aim of Micro Project:

The aim of developing the assembly language are as given below:

3.0 Course Outcomes Integrated:

4.0 Actual Procedure Followed:

First, we discussed in group about to find the subject related to project.


After discussion finally, we selected the topic, the topic is to develop a
assembely language program. Then we collected information related to the
subject. Afterwards, according to the standard format we started to do the
work on project. The group members decided to do work separately in
ways like collecting information, making proposal & report.
Mr. Sangam Shendge Sir, guide us how to collect the information &
how to work on the subject. According to his guidance we followed the

4
rule and after collecting information our project is completed. Finally, our
project is successfully completed. As per the decision of all members
complete the given work.

5.0 Literature Review:

6.0 Actual methodology followed:

• Write a 8086 assembly language program to separate even and odd


numbers in the array.

Algorithm:

Step1: Initialise data segment.


Step2: Initialise the counter.
Step3: Initialise the odd_pointer.
Step4: Initialise the even_pointer.
Step5: Initialize the array_pointer.
Step6: If LSB=0 go to next.
Step7: Initialise pointer to odd array and save number in odd array.
Step8: increment odd_pointer.
Step9: Initialise pointer to even array and save number in even array.
Step10: Increment array base_pointer.
Step11: Decrement counter.
Step12: If not 0 go to back.
Step13: Stop.

5
Flowchart:

Start

Initialise the data segment,counter,odd_pointer


,even_pointer ,array base_pointer

If LSB=0
Go to next

Increment odd _pointer

B A

6
B A

Increment even_pointer

Increment array base_pointer

Decrement counter

If not 0
go to
back

Stop

7.0 Actual Resources Used:

Sr. No. Name of Specifications Quantity Remarks


Resource/material

1. Software Visual Studio 1


Code,
Microsoft -
Word
2. Operating system Window 10 1

7
8.0 Outputs of the Micro-projects:

SOURCE CODE:

Code:-

DATA SEGMENT
ARRAY DB 12H,23H,26H,63H,25H,86H,2FH,33H,10H,35H
ARR_ODD DB 10 DUP(?)
ARR_EVEN DB 10 DUP(?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV CL,10
XOR DI,DI
LEA BP,ARRAY
BACK: MOV AL,DS:[BP]
AND AL,01H
JZ NEXT
LEA BX,ARR_ODD
MOV AH,[BX+DI]
MOV ARR_ODD,AH
INC DI
JMP SKIP
NEXT: LEA BX,ARR_EVEN
MOV AH,[BX+SI]
MOV AH,ARR_EVEN
INC SI
SKIP: INC BP
DEC CL
JNZ BACK
EXIT: MOV AH,4CH
INT 21H
CODE ENDS
END START
8
OUTPUT:
Code:-

9
10
9.0 Skill Developed/ learning out of this Micro-Project:

➢ Time Management.
➢ Stress Management.
➢ Study Skills.
➢ Money Management.
➢ Assertiveness Skills.
➢ Well-Developed Self Care Skills.
➢ Keeping Safe and Avoiding Risky Behaviors.
➢ Seeking Assistance When Needed.

11

You might also like