MPL - Assignment
MPL - Assignment
NAME:
Assignment No-05
Title:- Count no. of positive and negative numbers
Assignment Name: - Write an ALP to count no. of positive and negative numbers from
the array.
Objective:-
● To understand the assembly language program
● To understand 64 bit interrupt.
Outcome:-
● Students will be able to write code for how to count positive and negative
number from array
Prerequisite:-
Introduction:-
Write System Call
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2
syscall
mov rax,0
mov rdi,0
mov rsi,%1
mov rdx,%2
syscall
Algorithm:
1. Start
2. Initialize section .data
3. Define variable for array, pcount, ncount
4. Count Positive and negative number using BT command.
5. Display counts
6. Terminate program using system call
6. Stop
Conclusion:- Hence we implemented an ALP to count positive and negative
number from array and display count.
Questions:-
1. Explain BT,JS,loop instruction with Example?
2. Explain Paging in 80386?
3. Draw control registers of 80386