Question: a) Calculating the average value of array elements and assigning it to the variable ort, b) Implementing the Selective Sorting algorithm in assembly language with

  1. a) Calculating the average value of array elements and assigning it to the variable ort,

  2. b) Implementing the Selective Sorting algorithm in assembly language with the option a Write the code in the blank space below, explain the code.

n= 10 (a ) // array size a[10] = { 32, 16, 64, 128, 2, 8, 0, 4, 1, 3 } //array

MY_DATA SEGMENT PARA 'DATA' n DB 10

a DB 32, 16, 64, 128, 2, 8, 0, 4, 1, 3

ort DW ? MY_DATA ENDS

MY_CODE SEGMENT PARA 'CODE' MY_PROG PROC FAR

ASSUME CS:MY_CODE, DS:MY_DATA MOV AX,MY_DATA MOV DS,AX

// ADD CODE HERE

MOV AH, 04CH INT 21H

RET MY_PROG ENDP

MY_CODE ENDS END MY_PROG

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 Databases Questions!