Assembly language program that counts the number


1.Write an Intel 8085 assembly language program that counts the number of 1s in a binary number stored in the accumulator.Use the algorithm below. Hand assemble (produce hexadecimal code using code tables) the code for the first 10 lines of the program.

Tally = 0;

For i = 1 to 8

Shift accumulator once to the right

If carry = 1 then increment ONES

Next i

2.Use an algorithm similar to one in Question 1 to find the parity (odd/even) of a binary number stored in the accumulator.
3.A text is stored in a memory block, in ASCII format. Transform all lower-case characters of this text into upper-case, leaving numbers, special characters, and upper case characters unchanged.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Assembly language program that counts the number
Reference No:- TGS0126217

Expected delivery within 24 Hours