Question: Implement the following pseudocode in assembly language, use the same variable and array name used in the pseudocode let Arr be a double word array

Implement the following pseudocode in assembly language, use the same variable and array name used in the pseudocode
let Arr be a double word array of size 15 with fill it with random values.
Algorithm:
Num2 = 0
Num1 = 0
Size = 32
i = size -1
repeat
digit = Arr[i]
digit = digit AND 01
i++
if digit != 0 then
Num1++
Else{
Arr[i]=0
Num2++}
until i == 14
print Arr
if Num1 > Num2
print Majority is Odd
Else if ( Num1 < Num2)
Print Majority is Even
Else
Print Number of even and odd values are equal

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!