Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Indian Institute of Technology Jodhpur, Rajasthan

Department of Electrical Engineering


EE 312: Microprocessors and Microcontrollers
Assignment I and II
Instructions:
1. You can submit your assignments either by a soft or hard copy.
2. Students submitting soft copies should eMail the PDF files to
suresh@iitj.ac.in with the subject line ee312 assignment X
submission. Where X is the assignment number I or II.
3. Students submitting hard copies should post in the box (in my office).
4. Submissions after the due date will not be accepted.
5. Please note that plagiarism is a serious academic offence and do not
even attempt to copy from others.
6. Please tabulate all your programs in the below format:

7. Please be clear in your comments for each of the instructions.


8. HEX codes for mnemonics can be obtained from text book.
9. Your accessible memory is from 8900H to A900H

EE312: Assignment I and II

Indian Institute of Technology Jodhpur, Rajasthan


Department of Electrical Engineering
Assignment - I
Due date: 17-SEP-2015, 23:59 IST (soft copy)
17-SEP-2015, 18:59 IST (hard copy)

Q1. Ten bytes of data (unsigned numbers) is stored in the memory


location starting from 8900H. Write a program to transfer these 10 bytes
to memory location starting from 8905H and keep the register B as a
counter for number of even numbers.

Q2. Ten bytes of data (unsigned numbers) is stored in the memory


location starting from 8900H. Write an 8085 program to add these
numbers and store the result in memory location 89A0H (LSB) and 89A1H
(MSB).

Q3. Ten bytes of data (10 packed BCD numbers) is stored in the memory
location starting from 8900H. Write an 8085 program to convert these
BCD digits to HEX and store the 10 byte result from memory location
89A0H onwards.

EE312: Assignment I and II

Indian Institute of Technology Jodhpur, Rajasthan


Department of Electrical Engineering
Assignment - II
Due date: 01-OCT-2015, 23:59 IST (soft copy)
01-OCT-2015, 18:59 IST (hard copy)

Q1. Ten bytes of data (HEX digits) is stored in the memory location
starting from 8900H. Write an 8085 program to convert these HEX digits
to packed BCD and store the 20 byte result from memory location 89A0H
onwards.

Q2. Write an 8085 program to compute the product of two HEX numbers
stored in memory locations 8900H and 8901H. Store the 2-byte result from
memory location 8903H onwards.

Q3. Write an 8085 program to divide the number stored in 8900H by the
number stored in 8901H. Store the quotient and reminder in memory
locations 8902H and 8903H respectively.

EE312: Assignment I and II

You might also like