Mic Microproject
Mic Microproject
*WELCOME*
IN MIC MICRO PROJECT
INDEX
NO. TITLE
WELCOME PAGE
1
SUBMMITED STUDENT NAME
2
INTRODUCTION ABOUT
3
PROJECT
4 REQUIRED SOFTWARE AND DEVICES
6 USER INTERFACE
7 PROGRAM
8 OUTPUT
9 EXPLAINATION OF PROGRAM
10 CONCLUSION
11 THANKING PAGE
PROJECT SUBMITTED BY
ROLL NAME
NO.
37 Atharva Chavan
38 Naresh Patil
39 Prem Khaire
40 Pratik Dhole
Introduction of Positive Numbers in
array
:
The most significant bit (MSB) i. e. D7 or D15 in 8bit or 16bit signed
magnitudes number sign od the number i.e. D7 or D15 as shown fig. Given
below
Hence, by checking most significant bit, we can find out a byte or word is positive number. Most
significant bit i.e. D7 or D15 for byte or word can be checked using either ROL or RCL instruction as given
in fig. Given below.
Problem – Write an assembly language program in 8085 microprocessor to
count the positive number in array
Algorithm –
1. Initialize the data segment.
12. Stop.
Required Software and devices
Disadvantages:
1. Complexity: Assembly language programming for the 8086 is
complex and requires a deep understanding of the processor's
architecture, making it less accessible for beginners.
2. Debugging: Debugging assembly language programs can be
challenging due to the lack of high-level constructs and the need to
manually manage memory and registers.
3. Portability:Code written for the 8086 is not easily portable to other
architectures, limiting its usefulness in cross-platform development.
USER INTERFACE
In the context of the 8086 microprocessor, there is no built-in concept of a
graphical user interface (GUI) as we know it today. Programs written for the 8086
typically interact with the user through the console, using text-based input and
output.
For the program to count positive numbers in an array, the user interface would
be quite simple. Here's a basic outline:
2. Input Array:The program would then ask the user to input the array elements,
typically by entering numbers separated by spaces or commas.
3. Process Data: The program would process the input array to count the positive
numbers.
4. Display Result:Finally, the program would display the count of positive numbers
to the user
.DATA
ARR_SIZE DW 8
ARR DB 2, -5, 6, -7, 8, -1, 10, -3
POS_COUNT DB 0
.CODE
MOV AX, @DATA
MOV DS, AX
COUNT_LOOP:
MOV BL, [SI]
CMP BL, 0
JLE NEXT_ELEMENT
INC AL
NEXT_ELEMENT:
INC SI
LOOP COUNT_LOOP
MOV POS_COUNT, AL
END
OUTPUT
Explanation of the
program:
1. `.MODEL SMALL` and `.STACK 100H`: These
directives specify the memory model and the stack
size, respectively.
CONCLUSION