You are on page 1of 3

GUJARAT TECHNOLOGICAL UNIVERSITY

C. K. Pithawalla College of Engineering and Technology, Surat


B. E. III SEMESTER: V (Computer Engineering)

Subject Name: Microprocessor and Interfacing (2150707)

Practical Index

Sr Problem Statement Remark Signature


No
1 a. Store the data byte 32H into memory location 2000H.
b. 10H is stored in register B and BCH is stored in register H. Swap the
values of B and H Register.
2 a. 20H and ABH are stored at memory locations. Swap the values of them.
(Using LXI,MOV only)
b. 20H and ABH are stored at memory locations. Swap the values of them.
(Using LDAX and STAX)
c. 20H and ABH are stored at memory locations. Swap the values of them.
(Using LDA and STA)
d. 20H and ABH are stored at memory locations. Swap the values of them.
(Using XCHG)
3 a. Store 80H to accumulator and add 20H to it.
b. Store 80H in accumulator and 20H in register then add both the numbers.
c. Store 20H in accumulator and add accumulator with the same.
d. Store 20H in register B,add register B with same number and also store
result in Register B.
e. Store 80H in memory and 20H in accumulator then add both numbers and
store the result in memory.
4 a. Addition of two bytes stored at memory location and also store result in
memory.
b. Subtract the content of memory location 2001H from the memory location
2002H and place the result in 2003H.
c. Addition of two 16-bit Numbers stored in memory
5 Find whether the number stored in register B is even or odd. Load Accumulator
with 00H if number is even else load 01H.
6 Check whether the number stored in register B is positive, negative or zero. The
accumulator is 00H if number is zero, 11H if number is positive and 22H if
number is negative.
7 a. Addition of 1 to 10 number using counter.
b. Addition of any 10 numbers stored in memory locations
c. Add any ten byte type hexadecimal numbers. Store FFH in memory
location 2080H when the sum exceeds eight bits, otherwise store the sum.
8 Find the 1’s complement and 2’s complement of the number stored at memory
location 2000H.
9 a. Find the minimum from two 8-bit numbers.
b. Find the maximum number from the block of 10 data bytes.
c. Find the minimum number from the block of 10 data bytes.
10 Count number of 1’s in the content of D register and store the count in the B
register.
11 A set of current readings is stored in memory locations starting at XX50H. The
end of the data string is indicated by the data byte 00H. Add the set of readings.
The answer may be larger than FFH. Store the entire sum at memory locations
XX70 and XX71H.[Data(H) 32,52,F2,C5,00]
12 a. Write an ALP to multiply the contents of memory location 3040H by the
contents of memory location 3041H and store the result in memory locations
3042H and 3043H with LS byte of the product at memory location 3042H.
Draw also the flow chart.
b. Divide the content of register B with register C and store the result in register
D.
13 a. Write an 8085 program to copy block of ten numbers starting from location
2050h to locations starting from 3050h.
b. The following block of data is stored in memory locations from XX55H to
XX5AH. Transfer the data to the location XX80H to XX85H in the reverse
order. [ Data(H) 22,A5,B2,99,FF,37]
14 Write a program to sort the following set of marks scored by ten students in a
database course in descending order. [ Data(H) 63,41,56,62,48,5A,4F,4C,56,56]
15 Calculate the sum of odd numbers and count even numbers from the block of 10
data bytes stored in memory locations.
16 An array of binary numbers is stored in memory starting from address 3000H.
There are ten numbers in the array. Write an ALP which finds out quantity of
positive numbers , negative numbers and zeros in the data array and stores the
result in memory location starting from address 3050H.
17 Search the given byte in the list of 10 numbers. If search is successful store 00H in
register B and else store 01H in register B.
18 Write an 8085 program to reverse a string stored as series of ASCII characters
starting from location 3050h and ended with 0Dh using stack.
19 Write an Assembly Language Program (ALP) to find the 2’s complement of a
number stored in Memory location A000 H store the result in B000H.
20 a. Perform addition of two 16 bit numbers stored in register pairs BC and DE
respectively. Store the result in HL pair.
b. Perform subtraction of two 16 bit numbers stored in register pairs BC and DE
respectively. Store the result in HL pair.
21 Write an 8085 subroutine to exchange two numbers. Use it to reverse an array of
10 numbers starting from 3050h.
22 Pack the two unpacked BCD numbers stored in memory locations.
23 Write and ALP to add two 16 bit numbers Assume that the answer does not
generate carry
24 A set of ten BCD numbers are stored in memory locations starting from 2100H.
Write an ALP to convert each BCD number to binary hex number and store the
result in memory locations starting from address 2000H.
25 Convert Binary to unpacked BCD.
26 Add two BCD numbers and store the result in memory location.
27 Subtract two BCD numbers and store the result in memory location.
28 Generate Fibonacci numbers.
29 Perform multiplication of two 8 bit numbers using shift and add method.

You might also like