MIC Microproject
MIC Microproject
MIC Microproject
PVPIT
4.0 Literature Review:
2
MICRO PROJECT REPORT
ON
MICROPROCESSORS
Title of Micro-Project: Program to Use
Conditional Instruction
It checks whether the carry flag is set or not. If yes, then jump takes place,
that is: If CF = 1, then jump.
It checks whether the carry flag is reset or not. If yes, then jump takes
place, that is: If CF = 0, then jump.
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.
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.
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.
Algorithm:
5
Flowchart:
Start
If LSB=0
Go to next
B A
6
B A
Increment even_pointer
Decrement counter
If not 0
go to
back
Stop
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