You are on page 1of 3

Microprocessor Architecture Practical List

Sr No Practical No Program Date for Batch


2
1. 1. a. Program to load data 05H into A and 20H into B
16-01-2019

2. b. Program to load data 10H into A and copy to B 16-01-2019


3. c. Program to demonstrate LXI Rp, LHLD and SHLD 16-01-2019
4. d. Program to load 8-bit data 10H to memory 2000H 16-01-2019
5. e. Program to exchange the contents of D000H(10H) 23-01-2019
and D001H(20H)
6. 2. a. Program to add contents of D000H(20H) and 23-01-2019
D001H(23H) and store in D002H
7. b. Program to subtract contents of D000H(20H) from 23-01-2019
that of D001H(23H) and store in D002H
8. c. Program for 16-bit addition of numbers in 06-02-2019
D000H(34H), D001H(12H) and D002H(43H) and
D003H(21H) and store in D004H and D005H
9. d. Program for 16-bit subtraction of numbers in 06-02-2019
D002H(00H), D003H(01H) from D000H(34H),
D001H(12H) and store in D004H and D005H
10. 3. a. Program to find the 1’s complement of the number 20-02-2019
stored at C200H(AAH) and store in C300
11. b. Program to find the 2’s complement of the number 20-02-2019
stored at C200H(44H) and store in C300
12. c. Program to mask the lower nibble of an 8-bit number 20-02-2019
assuming it is in A(5BH) and store in B
13. d. Program to mask the upper nibble of an 8-bit number 20-02-2019
assuming it is in A(5BH) and store in B
14. e. Program to pack 2 BCD numbers at D000H(02H) and 20-02-2019
D001H (09H)
(LSD at D000H)
15. f. Program to unpack the BCD number stored at 20-02-2019
C200H(92H) and store in C300H (LSD) and C301H
16. 4. a. Program to shift 8-bit data by 4 bits to the right 20-02-2019
assuming it is in B(24H)
17. b. Program to shift 16 bit data by 1 bit to the right 20-02-2019
assuming it is in DE (4020H)
18. 5. a. Program to calculate the sum of a series of numbers 03-03-2019
assuming length is in 4200H and series starts from (Sunday, Date
4200H and ends at 4204H (04H, 10H, 45H, 33H, 22H) common for all
considering sum to be 8-bit batches)
19. b. Program to calculate the sum of a series of numbers
assuming length is in 4200H and series starts from
4200H and ends at 4204H (04H, 10H, 45H, 33H, 22H)
considering sum to be 16-bit
20. c. Program to sort 10 numbers from 2200H in ascending
order
21. 6. a. Program to arrange an array of 8-bit unsigned no in 07-03-2019
ascending order
22. b. Program to arrange an array of 8-bit unsigned no in 07-03-2019
descending order
23. 7. a. Program to multiply two 8-bit numbers stored in 07-03-2019
2200H(03H) and 2201H(B2H) and store in 2300H and
2301H
24. b. Program to divide a 16-bit number stored in 07-03-2019
2200H(60H) and 2201H(A0H) by the 8-bit number
stored at 2202H (12H) and store the quotient in
2300H and 2301H and the remainder in 2302H and
2303H
25. 8. a. Program to find the number of negative elements in a 15-03-2019
block of data. Length of block is in 2200H(04H) and
block starts from 2201H and ends at 2204H (56H,
A9H, 73H, 82H)
26. b. Program to find the number of positive elements in a 15-03-2019
block of data. Length of block is in 2200H(04H) and
block starts from 2201H and ends at 2204H (56H,
A9H, 73H, 82H)
27. 9. a. Program to find the largest number in a block of data 15-03-2019
from 2201 to 2204H(34H, A9H, 78H, 56H), length is in
2200H(04H)
28. b. Program to find the smallest number in a block of 15-03-2019
data from 2201 to 2204H(34H, A9H, 78H, 56H), length
is in 2200H(04H)
29. 10. a. Program to transfer ten bytes of data from one 17-03-2019
memory to another memory block. Source memory (Sunday, Date
block starts D000H and destination memory block common for all
starts from E000H batches)
30. b. Program to reverse the contents of a block of N
bytes(D000H) and transfer the reverse contents to
destination(D100H).
31. 11. a. Program to calculate the sum of series of odd
numbers from a block of data from 2201H to 2204H
(9AH, 52H, 89H, 3FH), length is in 2200H(04H),
assume the sum to be 16-bit- store the result at
2300H and 2301H
32. b. Program to calculate the sum of series of even
numbers from a block of data from 2201H to 2204H
(20H, 15H, 13H, 22H, 22H), length is in 2200H(04H),
assume the sum to be 8-bit – store the result at
2210H
33. 12. a. Find the square of the given numbers from 6000H and PENDING FOR
store the result in location from 7000H B2
34. b. Program to generate the Fibonacci Series (count = 5) 20-03-2019
35. c. Program to calculate factorial of a number between 0 20-03-2019
to 8
36. 13. a. Program to find the number of positive and negative 25-03-2019
numbers and zeroes from a list of 10 numbers
starting at D000H (26H, 81H, 00H, 44H, 00H, F0H,
32H, 87H, 02H, 12H)
NOTE: Replace 13(a) in the PDF with this one.
37. b. Program to search for a given byte (for 32H here) in a 25-03-2019
block of data with 10 numbers starting at D000H.
(26H, 81H, 00H, 44H, 00H, F0H, 32H, 87H, 02H, 12H)
NOTE: Replace 13(b) in the PDF with this one.
38. 14. a. Program to add two BCD numbers. Two decimal PENDING FOR
numbers six digits each, are stored in BCD package B2
form. Each number occupies a sequence of byte in
the memory. The starting address of first number is
6000H. Store the result in the same format from
6200H
39. b. Program to add 2 arrays having ten 8-bit numbers 25-03-2019
each and generate a third array of result. It is
necessary to add the first element of array 1 with the
first element of array-2 and so on. The starting
addresses of array l, array2 and array3 are 2200H,
2300H and 2400H, respectively.
Values:
#ORG 2200H
#DB 02H, 08H, 03H, 12H, 11H, 05H, 01H, 04H, 09H,
07H
#ORG 2300
#DB 06H, 02H, 06H, 04H, 01H, 05H, 03H, 01H, 12H,
11H
40. 15. a. Program to separate even numbers from the given list 25-03-2019
of 10 numbers and store them in another list starting
from 2300H. Assume starting address of 10 number
list is 2200H.( (26H, 81H, 00H, 44H, 00H, F0H, 32H,
87H, 02H, 12H)
41. b. Program to add even parity to a string of 7-bit ASCII PENDING FOR
characters. The length of the string is in memory B2
location 2040H and the string itself begins in memory
location 2041H. Place even parity in the most
significant bit of each character.
42. c. Program to delete a string of 4 characters from the PENDING FOR
tenth location in the given array of 50 characters. B2
43. 16. a. Program to test RAM by writing '1' and reading it back 25-03-2019
and later writing '0' (zero) and reading it back. RAM
addresses to be checked are 40FFH to 40FFH. In case
of any error, it is indicated by writing 01H at port 10H.
44. b. Program to split a hex data into two nibbles and store 25-03-2019
it in memory
45. c. Program to convert a BCD number in A(96H) to Binary PENDING FOR
B2