Question: Write an assembly language(x86) program for given high level code? (Points: 10) A=7; B= count number of binary 1 in A If( B= = odd
Write an assembly language(x86) program for given high level code? (Points: 10)
A=7;
B= count number of binary 1 in A
If( B= = odd && B < 4 || B= =1 )
{
Result1 = A* B; \\ Using extended format multiplication algorithm
}
Else
{
A[2 3 6] + B[4 5 7]= Result 2[(0) ( 2+4+5+7) (3+4+5+7) (6+4+5+7)] ;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
