Question: Problem Description: 1 . ) Write a program in Assembly language 8 0 8 6 that reads the numbers from memory ( num 1 :

Problem Description:
1.) Write a program in Assembly language 8086 that reads the numbers from memory (num1: dw 6,7,8,9,20,21,22,23,24,5,26,0,13,27,30,1,3) and perform following operations on them;
Separate the prime numbers and store the result (prime numbers) in consecutive memory locations in an array (dw) named 'prime'.
Find the average of numbers from prime array and store in array name avg : dw 0
Sort the numbers from given array (num2: dw 0,1,2,3,4,5,6,7,8,9,10) in ascending order . Store the result in consecutive memory locations in an array (dw) named sort.
There should be separate subroutines for each mentioned task like prime, average, sort. Also implement stack concept within each subroutines.
Problem Description: 1 . ) Write a program in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!